std.ps.pty_open

std.ps

pty_open() -> 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.