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