Terminal emulator
Categories: Cleanup from October 2005 | Bulletin board systems | Human-computer interaction | Technical communication tools
A terminal emulator, terminal application, term, or tty for short, is a program that emulates a "dumb" video terminal within some other display architecture.
A terminal emulator inside a graphical user interface is often called a terminal window. A terminal window allows the user access to a command-line interface (or occasionally a character-based application) which may be running either on the same machine or on a different one via telnet, ssh, or dial-up. On Unix-like operating systems it is common to have one or more terminal windows connected to the local machine, but on more graphically-oriented machines the remote use is more common.
Example programs providing the remote-access form of terminal emulation under Microsoft Windows include the built-in programs HyperTerminal and Microsoft's telnet client, as well as 3rd party programs like PuTTY, AlphaCom, SSH, and SecureCRT. A so-called "DOS box" or "Command prompt" is the Windows equivalent of a locally-connected terminal window (in fact, it is a Win32 console). MS-DOS examples include ProComm, Qmodem, Telemate and Telix.
The ubiquitous Unix terminal window is used for both local and remote access; where the connection goes is not the business of the terminal emulator itself. Many different terminal emulators are available for the X Window System - the most mature of the bunch are xterm, dtterm, and rxvt. Others include Eterm, aterm, gnome-terminal, and konsole.
Early adopters of computer technology, such as banks, insurance companies, and governments, still make frequent use of terminal emulators. They typically have decades old applications running on mainframe computers. The old “dumb” video terminals used to access the mainframe are long since obsolete; however, applications on the mainframe are still in use. Quite often, terminal emulators are the only way a user can access applications running on these older machines.
Raw and cooked input/output
On Unix-like systems, at the level of the terminal or terminal emulator an individual keypress sends an individual code from the character set in use. Also, carriage return and line feed are distinct operations. In raw mode, text passes directly from the terminal or PTY (a device node that a program wishing to emulate a terminal binds to) to the TTY device. In cooked mode a number of changes are made as the data pass between the terminal or PTY and the TTY: The application gets complete lines of input at once neatly terminated with a linefeed and can send just a linefeed when it wants a new line. Also, text typed is echoed back to the user. When a program is started, terminal is generally in cooked mode which allows easy input and output of text, but applications that want more control will often put the terminal into raw mode. The individual characteristics of cooked mode can also be turned on and off individually which may be desirable to some applications.
External links
es:Emulador de terminal nl:Terminalemulator ja:端末エミュレータ fi:Pääte-emulaattori