 "The Linux Programming Interface" chapter 62 "Terminals" and chapter 64 "Pseudoterminals".A pseudoterminal ("pseudo TTY" or "PTY") is a pair of pseudo-devices – a "slave" and a "master" – that provide a special sort of communication channel.The slave pseudo-device emulates a physical computer text terminal, like e.g.