diff options
Diffstat (limited to 'static/v10/man4/newtty.4')
| -rw-r--r-- | static/v10/man4/newtty.4 | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/static/v10/man4/newtty.4 b/static/v10/man4/newtty.4 new file mode 100644 index 00000000..ce7dacc8 --- /dev/null +++ b/static/v10/man4/newtty.4 @@ -0,0 +1,90 @@ +.TH NEWTTY 4 +.UC 4 +.SH NAME +newtty \- summary of the ``new'' tty driver +.SH SYNOPSIS +.B "stty new" +.PP +.B "stty new crt" +.SH DESCRIPTION +This is a summary of the new tty driver, described completely, with the +old terminal driver, in +.IR tty (4). +The new driver is largely compatible with the old but provides additional +functionality for job control. +.LP +.B "CRTs and printing terminals." +.LP +The new terminal driver acts differently on CRTs and on printing terminals. +On CRTs at speeds of 1200 baud or greater it normally erases input characters +physically with backspace-space-backspace when they are erased logically; +at speed under 1200 baud this is often unreasonably slow, so the cursor +is normally merely moved to the left. This is the behavior when you say +\*(lqstty new crt\*(rq; to have the tty driver always erase the characters say +\*(lqstty new crt crterase crtkill\*(rq, +to have the characters remain even at 1200 +baud or greater say \*(lqstty new crt \-crterase \-crtkill\*(rq. +.LP +On printing terminals the command \*(lqstty new prterase\*(rq should be given. +Logically erased characters are then echoed printed backwards +between a `\e' and an `/' character. +.LP +Other terminal modes are possible, but less commonly used; see +.IR tty (4) +and +.IR stty (1) +for details. +.LP +.B "Input editing and output control." +.PP +When preparing input the character # +(normally changed to ^H using +.IR stty (1)) +erases the last input character, +\&^W the last input word, and the character @ +(often changed to ^U) +erases the entire current input +line. A ^R character causes the pending input to be retyped. +Lines are terminated by a return or a newline; a ^D at the beginning +of a line generates an end-of-file. +.PP +Control characters echo as ^x when typed, for some x; the delete character +is represented as ^?. +.PP +The character ^V may be typed before +.I any +character so that it may be entered without its special effect. +For backwards compatibility with the old tty driver the character `\e' +prevents the special meaning of the character and line erase characters, +much as ^V does. +.LP +Output is suspended when a ^S character is typed and resumed when a ^Q +character is type. Output is discarded after a ^O character is typed +until another ^O is type, more input arrives, or the condition is cleared +by a program (such as the shell just before it prints a prompt.) +.PP +.B "Signals." +.PP +A non-interactive program is interrupted by a ^? (delete); this character +is often reset to ^C using +.IR stty (1). +A quit ^\e character causes programs to terminate like +^? does, but also causes a \fIcore\fR image file to be created which +can then be examined with a debugger. This is often used to stop runaway +processes. +Interactive programs often catch interrupts and return to their command +loop; only the most well debugged programs catch quits. +.PP +Programs may be stopped by hitting ^Z, which returns control to the shell. +They may then be resumed using the job control mechanisms of the shell, +i.e. the +.I fg +(foreground) command. +The character ^Y is like ^Z but takes effect when read rather then when +typed; it is much less frequently used. +.PP +See +.IR tty (4) +for a more complete description of the new terminal driver. +.SH "SEE ALSO" +csh(1), newcsh(1), stty(1), tty(4) |
