词条 | Pseudoterminal |
释义 |
In some operating systems, including Unix, a pseudoterminal, pseudotty, or PTY is a pair of pseudo-devices, one of which, the slave, emulates a hardware text terminal device, the other of which, the master, provides the means by which a terminal emulator process controls the slave. HistoryPseudoterminals were present in the DEC PDP-6 Timesharing Monitor at least as early as 1967, and were used to implement batch processing.[1] They are described in the documentation for the succeeding TOPS-10 on the PDP-10.[2] Other DEC operating systems also had PTYs, including RSTS/E for the PDP-11, as did the third-party TENEX operating system for the PDP-10. Unix pseudoterminals originated in 1983 during the development of Eighth Edition Unix and were based on a similar feature in TENEX.[3] They were part of the 4.2 release of BSD. AT&T's System V included support for pseudoterminals as a driver in their STREAMS device model, along with the pseudoterminal multiplexer. The Linux Programming Interface from 2010 contains an entire chapter (chapter 64 "Pseudoterminals" p1375–1399.) explaining pseudoterminals. Then there is another one, Chapter 62 "Terminals", dedicated to terminals. ApplicationsThe role of the terminal emulator process is:
The terminal emulator process must also handle terminal control commands, e.g., for resizing the screen. Widely used terminal emulator programs include xterm, GNOME Terminal, Konsole, and Terminal. Remote login handlers such as ssh and telnet servers play the same role but communicate with a remote user instead of a local one. Also consider programs such as expect. Screen and Tmux are used to add a session context to a pseudoterminal, making for a much more robust and versatile solution. For example, each provides terminal persistence, allowing a user to disconnect from one computer and then connect later from another computer. VariantsIn the BSD PTY system, the slave device file, which generally has a name of the form BSD PTYs have been rendered obsolete by Unix98 ptys whose naming system does not limit the number of pseudo-terminals and access to which occurs without danger of race conditions. References1. ^http://groups.google.com/group/alt.sys.pdp10/msg/5d96697ebf5c7bcf{{rs|date=June 2016}} 2. ^PDP-10 Timesharing Monitors Programmer's Reference Manual section 5.10 3. ^{{cite journal | last = Ritchie | first = D. M. | title = A stream input-output system | citeseerx = 10.1.1.48.3730 | journal = AT&T Bell Laboratories Technical Journal | volume = 63 | issue = 8 | pages = 1897–1910 }} 4. ^{{cite web | url = http://www.freebsd.org/cgi/man.cgi?pty | title = pty | publisher = FreeBSD | work = man page }} 5. ^pts(4): pseudo-terminal master/slave - Linux man page External links
2 : Terminal emulators|Technical communication tools |
随便看 |
|
开放百科全书收录14589846条英语、德语、日语等多语种百科知识,基本涵盖了大多数领域的百科知识,是一部内容自由、开放的电子版国际百科全书。