MKTTY — User Commands
NAME
mktty − Create pseudo-terminal with 4.3 BSD line discipline
SYNOPSIS
mktty rawTty pdevName [command arg arg ...]
DESCRIPTION
Given a raw serial line device, mktty generates a pseudo-device that behaves like a terminal under 4.3 BSD UNIX, with most of the features of the 4.3 BSD terminal driver. RawTty is the name of a device file for a serial line. Tty will read keyboard input from this file in raw mode and write screen output to the file, also in raw mode. Tty will create a pseudo-device at pdevName; input from rawTty will appear as input on pdevName after line-editing and other input-related features of the 4.3 BSD terminal driver. Output to pdevName will eventually appear as output on rawTty, after processing that simulates the features of the 4.3 BSD terminal driver. All of the 4.3 BSD I/O-control operations may be performed on pdevName, except for the exceptions listed below. Thus if a user’s terminal is connected to rawTty and if the user’s applications all talk to pdevName, everything will behave as it did under 4.3 BSD UNIX.
If command is given as an argument to mktty, it (and the following arguments) are executed with pdevName as standard input, standard output, and standard error.
Tty also supports a special mode of operation where it uses a network connection instead of a raw serial line device. If rawTty contains a colon character, then it is assumed to have the form host:portNum, where host is the name of a host and portNum is a decimal port number within that host. In this case, mktty will open a TCP connection to the given port and will use it for reading and writing characters to the supposed terminal. This feature is designed for use with the rtty program, which is capable of supporting the other end of the TCP connection.
UNIMPLEMENTED FEATURES
For details on the features implemented by mktty, see the 4.3 BSD man page TTY(4). Tty implements all of the functionality of the 4.3 BSD “new” line discipline except for the following:
•Control terminal: there is no “/dev/tty” device yet in Sprite.
•Output delays, such as BS0 and TAB0 are not implemented; the delay-related flags in sgttyb structs are ignored, except for XTABS, which doesn’t specify a delay and is implemented.
•Parity is not generated or checked.
•The LTILDE, LTOSTOP, LETXACK, and LINTRUP local mode flags are ignored.
Tty only implements the “new” line discipline: the “old” and “net” disciplines are not implemented.
KEYWORDS
line discipline, pseudo-device, terminal driver
Sprite version 1.0 — April 06, 1989