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