Pseudo terminals

The Interix Software Development Kit (SDK) supports pseudo terminals. Both the Berkeley Software Distribution (BSD) /dev/ptynn and the System V /dev/ptmx methods are supported for opening the master side of a pty. The System V method is slightly faster because the search for an available master device is handled in the subsystem.

When using /dev/ptmx, the subordinate (slave) tty name can be obtained with ptsname().

Currently, the Interix subsystem supports 265 ptys named /dev/pty[pzAE][09af] on the master side. The corresponding subordinate side names are /dev/tty[pzAE][09af].

BSD-based ioctl() calls can be used with the pty master side.