fill in fields that are checked
[unix-history] / usr / src / old / man / newtty.4
CommitLineData
6d5259d5
KM
1.\" Copyright (c) 1980 Regents of the University of California.
2.\" All rights reserved. The Berkeley software License Agreement
3.\" specifies the terms and conditions for redistribution.
4.\"
5.\" @(#)newtty.4 4.1 (Berkeley) %G%
6.\"
7.TH NEWTTY 4 4/1/81
8.UC 4
9.SH NAME
10newtty \- summary of the ``new'' tty driver
11.SH USAGE
12.B "stty new"
13.PP
14.B "stty new crt"
15.SH DESCRIPTION
16This is a summary of the new tty driver, described completely, with the
17old terminal driver, in
18.IR tty (4).
19The new driver is largely compatible with the old but provides additional
20functionality for job control.
21.LP
22.B "CRTs and printing terminals."
23.LP
24The new terminal driver acts differently on CRTs and on printing terminals.
25On CRTs at speeds of 1200 baud or greater it normally erases input characters
26physically with backspace-space-backspace when they are erased logically;
27at speed under 1200 baud this is often unreasonably slow, so the cursor
28is normally merely moved to the left. This is the behavior when you say
29\*(lqstty new crt\*(rq; to have the tty driver always erase the characters say
30\*(lqstty new crt crterase crtkill\*(rq,
31to have the characters remain even at 1200
32baud or greater say \*(lqstty new crt \-crterase \-crtkill\*(rq.
33.LP
34On printing terminals the command \*(lqstty new prterase\*(rq should be given.
35Logically erased characters are then echoed printed backwards
36between a `\e' and an `/' character.
37.LP
38Other terminal modes are possible, but less commonly used; see
39.IR tty (4)
40and
41.IR stty (1)
42for details.
43.LP
44.B "Input editing and output control."
45.PP
46When preparing input the character #
47(normally changed to ^H using
48.IR stty (1))
49erases the last input character,
50\&^W the last input word, and the character @
51(often changed to ^U)
52erases the entire current input
53line. A ^R character causes the pending input to be retyped.
54Lines are terminated by a return or a newline; a ^D at the beginning
55of a line generates an end-of-file.
56.PP
57Control characters echo as ^x when typed, for some x; the delete character
58is represented as ^?.
59.PP
60The character ^V may be typed before
61.I any
62character so that it may be entered without its special effect.
63For backwards compatibility with the old tty driver the character `\e'
64prevents the special meaning of the character and line erase characters,
65much as ^V does.
66.LP
67Output is suspended when a ^S character is typed and resumed when a ^Q
68character is type. Output is discarded after a ^O character is typed
69until another ^O is type, more input arrives, or the condition is cleared
70by a program (such as the shell just before it prints a prompt.)
71.PP
72.B "Signals."
73.PP
74A non-interactive program is interrupted by a ^? (delete); this character
75is often reset to ^C using
76.IR stty (1).
77A quit ^\e character causes programs to terminate like
78^? does, but also causes a \fIcore\fR image file to be created which
79can then be examined with a debugger. This is often used to stop runaway
80processes.
81Interactive programs often catch interrupts and return to their command
82loop; only the most well debugged programs catch quits.
83.PP
84Programs may be stopped by hitting ^Z, which returns control to the shell.
85They may then be resumed using the job control mechanisms of the shell,
86i.e. the
87.I fg
88(foreground) command.
89The character ^Y is like ^Z but takes effect when read rather then when
90typed; it is much less frequently used.
91.PP
92See
93.IR tty (4)
94for a more complete description of the new terminal driver.
95.SH "SEE ALSO"
96csh(1), newcsh(1), stty(1), tty(4)