POSIX terminal interface: Difference between revisions

Content deleted Content added
Controlling environment variables: TERM et al.: Put period back after the parenthetical note.
Line disciplines: New name for Apple's UNIX-for-Macs.
Line 38:
Strictly speaking, in Unices a terminal device comprises the underlying ''tty device driver'', responsible for the physical control of the device hardware via I/O instructions and handling device interrupt requests for character input and output, and the ''line discipline''. A line discipline is independent of the actual device hardware, and the same line discipline can be used for a [[terminal concentrator]] device responsible for multiple controlling terminals as for a pseudoterminal. In fact, the line discipline (or, in the case of BSD, AIX, and other systems, line ''disciplines'') are the same across all terminal devices. It is the line discipline that is responsible for local echo, line editing, processing of input modes, processing of output modes, and character mapping. All these things are independent of the actual hardware, dealing as they do in the simple abstractions provided by tty device drivers: transmit a character, receive a character, set various hardware states.{{sfn|Leffler|McKusick|Karels|Quarterman|1989|p=38}}{{sfn|Leffler|McKusick|Karels|Quarterman|1989|p=260–261}}
 
In [[Seventh Edition Unix]], [[BSD]] systems and derivatives including [[OS XmacOS]], and [[Linux]], each terminal device can be switched amongst multiple line disciplines.{{sfn|Leffler|McKusick|Karels|Quarterman|1989|p=262}} In the AT&T [[STREAMS]] system, line disciplines are STREAMS modules that may be pushed onto and popped off a STREAMS I/O stack.{{sfn|Christian|1988|p=395}}
 
== History ==