Expand description
Pseudo-terminal (PTY) scheme.
A PTY pair consists of a master (controlling process) and a slave (child process). Data written to one side is readable from the other.
§Scheme paths
| Path | Description |
|---|---|
/dev/pts/new | Open to allocate a new PTY pair (returns master fd). |
/dev/pts/N | Open the slave side of PTY number N. |
/dev/pts/ | List existing PTYs. |
Structs§
- PtyScheme
- Manages all PTY pairs.
Functions§
- get_
pty_ scheme - Get a reference to the global PTY scheme instance.
- init_
pty_ scheme - Initialize and mount the PTY scheme at
/dev/pts.