Extracted from Pike v8.0 release 164 as of 2018-07-18.
   

Method Stdio.File()->openpt()


Method openpt

int openpt(string mode)

Description

Open the master end of a pseudo-terminal pair. The parameter mode should contain one or more of the following letters:

"r"

Open terminal for reading.

"w"

Open terminal for writing.


mode should always contain at least one of the letters "r" or "w".

See also

grantpt()