Module tty

Module tty 

Source
Expand description

For interacting with tty devices.

Structs§

PtyControllerDevice
A marker type for super::File objects that represent pseudoterminal controllers, as are typically opened from /dev/ptmx.
TtyDevice
A marker type for super::File objects that represent tty devices.
WindowSize
Represents the size of the window (or equivalent) that a tty is presented through.

Constants§

TIOCGPTN
ioctl request for finding the device unit number for a pseudoterminal. Use this with a PtyControllerDevice to determine which node to open from the /dev/pts directory.
TIOCGWINSZ
ioctl request for retrieving the current window size of a tty.
TIOCSPTLCK
ioctl request for setting or removing the lock on the terminal device associated with a PtyControllerDevice.
TIOCSWINSZ
ioctl request for changing the window size of a tty.