Linux TTY: Difference between revisions
(Created page with "=External= * http://www.linusakesson.net/programming/tty/ =Internal= * Linux General Concepts =Overview= "TTY" is a Linux subsystem that pr...") |
|||
Line 10: | Line 10: | ||
"TTY" is a Linux subsystem that provides the conduit through which keyboard strokes captured while the focus is in a terminal such as [[iTerm2]] or xterm are turned into the right characters and delivered to UNIX processes. At the same time, the TTY subsystem funnels the process' generated output back to the terminal. The name comes from "teletype", which used to be electro-mechanical machines that read keyboard entires, turned them into electrical signals and sent them across the wire to to other teletypes. | "TTY" is a Linux subsystem that provides the conduit through which keyboard strokes captured while the focus is in a terminal such as [[iTerm2]] or xterm are turned into the right characters and delivered to UNIX processes. At the same time, the TTY subsystem funnels the process' generated output back to the terminal. The name comes from "teletype", which used to be electro-mechanical machines that read keyboard entires, turned them into electrical signals and sent them across the wire to to other teletypes. | ||
==Pseudo tty== | |||
With the first terminals, there was always a piece of hardware (display or serial port) attached to the device. With XWindows, telnet and ssh, there came a need for software pseudo devices to do the job of standing in for display hardware. These are the pseudo terminals, software that emulates terminal hardware, handling input and output in the same way a physical device would do. | |||
==Function of a TTY== | |||
===Line Discipline=== | |||
===Session Management=== | |||
==Console== |
Revision as of 22:41, 2 May 2018
External
Internal
Overview
"TTY" is a Linux subsystem that provides the conduit through which keyboard strokes captured while the focus is in a terminal such as iTerm2 or xterm are turned into the right characters and delivered to UNIX processes. At the same time, the TTY subsystem funnels the process' generated output back to the terminal. The name comes from "teletype", which used to be electro-mechanical machines that read keyboard entires, turned them into electrical signals and sent them across the wire to to other teletypes.
Pseudo tty
With the first terminals, there was always a piece of hardware (display or serial port) attached to the device. With XWindows, telnet and ssh, there came a need for software pseudo devices to do the job of standing in for display hardware. These are the pseudo terminals, software that emulates terminal hardware, handling input and output in the same way a physical device would do.