Pseudoterminal
Pair of pseudo-device endpoints / From Wikipedia, the free encyclopedia
Dear Wikiwand AI, let's keep it short by simply answering these key questions:
Can you list the top facts and stats about Pseudoterminal?
Summarize this article for a 10 year old
In some operating systems, including Unix-like systems, a pseudoterminal, pseudotty, or PTY is a pair of pseudo-device endpoints (files) which establish asynchronous, bidirectional communication (IPC) channel (with two ports) between two or more processes.[1][2][3]
One pseudo-device in the pair, the master, provides means by which a terminal emulator or remote login server (e.g. a Telnet, rlogin, or Secure Shell server)[3] process controls the slave. The other pseudo-device, the slave, emulates a hardware serial port device,[1] and is used by terminal-oriented programs such as shells (e.g. bash) as a processes to read/write data back from/to master endpoint.[1] PTYs are similar to bidirectional pipes.[3]:ā1388ā
Devpts is a Linux kernel virtual file system containing pseudoterminal devices.
Linux implementation is based on System V-style terminals (commonly referred as UNIX 98 pseudoterminals)[4] and provides POSIX and the Single Unix Specification API in the form of a posix_openpt() function since 1998.[5]