IO::Tty (3)
Leading comments
Automatically generated by Pod::Man 4.09 (Pod::Simple 3.35) Standard preamble: ========================================================================
NAME
IO::Tty - Low-level allocate a pseudo-Tty, import constants.VERSION
1.08SYNOPSIS
use IO::Tty qw(TIOCNOTTY); ... # use only to import constants, see IO::Pty to create ptys.
DESCRIPTION
"IO::Tty" is used internally by "IO::Pty" to create a pseudo-tty. You wouldn't want to use it directly except to import constants, use "IO::Pty". For a list of importable constants, see IO::Tty::Constant.Windows is now supported, but
Please note that pty creation is very system-dependend. From my experience, any modern
If you have problems on your system and your system is listed in the ``verified'' list, you probably have some non-standard setup, e.g. you compiled your Linux-kernel yourself and disabled ptys (bummer!). Please ask your friendly sysadmin for help.
If your system is not listed, unpack the latest version of "IO::Tty", do a 'perl Makefile.PL; make; make test; uname -a' and send me (RGiersig@cpan.org) the results and I'll see what I can deduce from that. There are chances that it will work right out-of-the-box...
If it's working on your system, please send me a short note with details (version number, distribution, etc. 'uname -a' and 'perl -V' is a good start; also, the output from ``perl Makefile.PL'' contains a lot of interesting info, so please include that as well) so I can get an overview. Thanks!
VERIFIED SYSTEMS, KNOWN ISSUES
This is a list of systems that "IO::Tty" seems to work on ('make test' passes) with comments about ``features'':- *
-
AIX 4.3
Returns
EIOinstead ofEOFwhen the slave is closed. Benign. - *
-
AIX 5.x
- *
-
FreeBSD 4.4
EOFon the slave tty is not reported back to the master.
- *
-
OpenBSD 2.8
The ioctl
TIOCSCTTYsometimes fails. This is also known in Tcl/Expect, see expect.nist.gov/FAQ.htmlEOFon the slave tty is not reported back to the master. - *
- Darwin 7.9.0
- *
-
HPUX 10.20 & 11.00EOFon the slave tty is not reported back to the master.
- *
-
IRIX 6.5
- *
-
Linux 2.2.x & 2.4.x
Returns
EIOinstead ofEOFwhen the slave is closed. Benign. - *
-
OSF 4.0EOFon the slave tty is not reported back to the master.
- *
-
Solaris 8, 2.7, 2.6
Has the ``feature'' of returning
EOFjust once?!EOFon the slave tty is not reported back to the master. - *
-
Windows NT/2k/XP (under Cygwin)
When you send (print) a too long line (>160 chars) to a non-raw pty, the call just hangs forever and even alarm() cannot get you out. Don't complain to me...
EOFon the slave tty is not reported back to the master. - *
- z/OS
The following systems have not been verified yet for this version, but a previous version worked on them:
- *
-
SCOUnix
- *
-
NetBSD
probably the same as the other *BSDs...
If you have additions to these lists, please mail them to <RGiersig@cpan.org>.
SEE ALSO
IO::Pty, IO::Tty::ConstantMAILING LISTS
As this module is mainly used by Expect, support for it is available via the two Expect mailing lists, expectperl-announce and expectperl-discuss, at
lists.sourceforge.net/lists/listinfo/expectperl-announce
and
lists.sourceforge.net/lists/listinfo/expectperl-discuss
AUTHORS
Originally by Graham Barr <gbarr@pobox.com>, based on the Ptty module by Nick Ing-Simmons <nik@tiuk.ti.com>.Now maintained and heavily rewritten by Roland Giersig <RGiersig@cpan.org>.
Contains copyrighted stuff from openssh v3.0p1, authored by Tatu Ylonen <ylo@cs.hut.fi>, Markus Friedl and Todd C. Miller <Todd.Miller@courtesan.com>. I also got a lot of inspiry from the pty code in Xemacs.
COPYRIGHT
Now all code is free software; you can redistribute it and/or modify it under the same terms as Perl itself.Nevertheless the above
DISCLAIMER
In other words: Use at your own risk. Provided as is. Your mileage may vary. Read the source, Luke!
And finally, just to be sure:
Any Use of This Product, in Any Manner Whatsoever, Will Increase the Amount of Disorder in the Universe. Although No Liability Is Implied Herein, the Consumer Is Warned That This Process Will Ultimately Lead to the Heat Death of the Universe.