1.

What is the purpose of a Pseudo TTY (pseudo terminals)?

Answer»

A bidirectional communication channel is provided by a pair of virtual CHARACTER devices known as a pseudo TTY (or "PTY"). The master is at one end of the channel, while the slave is at the other. The pseudo-terminal's slave end provides an INTERFACE that is IDENTICAL to that of a conventional terminal. A process that expects to be connected to a terminal can open the slave end of a pseudo-terminal, which will subsequently be controlled by a program that has opened the master end. Anything written on the master end is supplied to the slave end's process as if it were any input entered on a terminal. Anything written to the slave end of the pseudo-terminal, on the other hand, can be read by the process linked to the master end. Network login services, terminal emulators, and other such applications EMPLOY pseudo-terminals.



Discussion

No Comment Found