Skip to main content

Module pty

Module pty 

Source
Expand description

A pseudo-terminal master whose size and foreground process group are asked of the OS.

A terminal that shows a session someone else opened receives the master’s descriptor and knows nothing else of the process: the window’s size, and where the guest’s process group stands, are ioctls on that descriptor.

Structs§

Master
A PTY master over a descriptor this process owns.
WinSize
The shape of a terminal: its rows and columns, and its pixels where the OS names them.