Crate openpty

Source

Functionsยง

openpty
Creates a new pseudo terminal in /dev/pts/ and returns the name and the master / slave file descriptors.