std.ps
pty_open() -> pty
pty
Open a new pseudoterminal pair
Opens a new pseudoterminal (PTY) master/slave pair. Returns a table with master and slave file descriptors, along with the slave's path.
master
slave