Technical data
SunOS 5.5 Devices pty(7D)
write(), it would appear to a process reading from the slave as if a single line
containing severalNEWLINE characters had been typed (as if, for example, a user
had typed theLNEXT character before typing all but the last of those NEWLINE
characters). Remote mode can be used when doing remote line editing in a win-
dow manager, or whenever flow controlled input is required.
EXAMPLES #include <fcntl.h>
#include <sys/termios.h>
int fdm fds;
fdm = open("/dev/ptyp0, O_RDWR); /∗ open master ∗/
fds = open("/dev/ttyp0, O_RDWR); /∗ open slave ∗/
FILES /dev/pty[p-z][0-9a-f] pseudo-terminal controller devices
/dev/tty[p-z][0-9a-f] pseudo-terminal slave devices
SEE ALSO rlogin(1), rlogind(1M), ldterm(7M), termio(7I), ttcompat(7M),
NOTES It is apparently not possible to send an EOT by writing zero bytes inTIOCREMOTE mode.
modified 8 Aug 1994 7D-269










