|
|
1.1 ! root 1: ! 2: ! 3: console Device Driver console ! 4: ! 5: ! 6: ! 7: ! 8: Console device driver ! 9: ! 10: ! 11: /dev/console is the device driver for the console of a COHERENT ! 12: system on the IBM AT. It is assigned major device number 2 and ! 13: minor device number 0. ! 14: ! 15: /dev/console interprets escape sequences in console output to ! 16: control output on the console monitor. These escape sequences ! 17: are compatible with ANSI X3.25. Thus, they are similar to those ! 18: used by the DEC VT-100 and VT-220 terminals. ! 19: ! 20: The special sequences include the following: ! 21: ! 22: <eesscc>>= Enter alternate keypad mode. ! 23: ! 24: <eesscc>> Exit alternate keypad mode. ! 25: ! 26: <eesscc>nn Print the corresponding special graphics character. ! 27: ! 28: <eesscc>77 Save the current cursor position. ! 29: ! 30: <eesscc>88 Restore the previously saved cursor position. ! 31: ! 32: <eesscc>cc Reset to power-up configuration ! 33: ! 34: <eesscc>DD Move the cursor down one line without changing the ! 35: column position. This command moves the scrolling ! 36: region text up and inserts blank lines if required. ! 37: ! 38: <eesscc>EE Move the cursor to the first column of the next line. ! 39: This command move the scrolling region down and inserts ! 40: blank line if required. ! 41: ! 42: <eesscc>MM Move the cursor up one line without changing column ! 43: position ! 44: ! 45: <eesscc>[ AA Cursor up; stop at top of page. ! 46: ! 47: <eesscc>[ BB Cursor down; stop at bottom edge of scrolling region. ! 48: ! 49: <eesscc>[ CC Cursor right. Stop at right bottom corner of scrolling ! 50: region. ! 51: ! 52: <eesscc>[ DD Cursor left. ! 53: ! 54: <eesscc>[ EE Cursor next line. Move scrolling region up and insert ! 55: a blank line if required. ! 56: ! 57: <eesscc>[ FF Move scrolling region text down and insert a blank line ! 58: if required. ! 59: ! 60: <eesscc>[ _n GG ! 61: Move the cursor to the _nth column of the current line. ! 62: ! 63: ! 64: COHERENT Lexicon Page 1 ! 65: ! 66: ! 67: ! 68: ! 69: console Device Driver console ! 70: ! 71: ! 72: ! 73: ! 74: <eesscc>[ _n;_m HH ! 75: Move the cursor to position m n. Position is relative ! 76: to the scrolling region. ! 77: ! 78: <eesscc>[ II Move the cursor position to the next horizontal tabula- ! 79: tion stop. ! 80: ! 81: <eesscc>[ _n JJ ! 82: Erase display: ! 83: 00 Erase from cursor to end of screen. ! 84: 11 Erase from beginning of screen to cursor. ! 85: 22 Erase the entire screen. ! 86: ! 87: ! 88: <eesscc>[ _n KK ! 89: Erase line: ! 90: 00 Erase from cursor to end of line. ! 91: 11 Erase from beginning of line to cursor. ! 92: 22 Erase entire line. ! 93: ! 94: ! 95: <eesscc>[ LL Insert a line. ! 96: ! 97: <eesscc>[ MM Delete a line. ! 98: ! 99: <eesscc>[ _n OO ! 100: Erase scrolling region: ! 101: 00 Erase from cursor to end of scrolling region. ! 102: 11 Erase from beginning of scrolling region to cursor. ! 103: 22 Erase entire scrolling region. Reposition cursor at ! 104: top left corner of scrolling region. ! 105: ! 106: ! 107: <eesscc>[ SS Scroll the characters in the scrolling region up one ! 108: line. The bottom of the scrolling region is cleared to ! 109: blanks. ! 110: ! 111: <eesscc>[ TT Scroll the characters in the scrolling region down one ! 112: line. The top line of the scrolling region is cleared ! 113: to blanks. ! 114: ! 115: <eesscc>[ ZZ Move the cursor backwards to the last tabulation stop. ! 116: ! 117: <eesscc>[ _n ` ! 118: Move the cursor to column _n of the current line. ! 119: ! 120: <eesscc>[ _n aa ! 121: Move the cursor forward n columns in the current line. ! 122: ! 123: <eesscc>[ _n dd ! 124: Move the cursor to row _n of the display. ! 125: ! 126: <eesscc>[ _n ee ! 127: Move the cursor down _n rows. ! 128: ! 129: ! 130: COHERENT Lexicon Page 2 ! 131: ! 132: ! 133: ! 134: ! 135: console Device Driver console ! 136: ! 137: ! 138: ! 139: ! 140: <eesscc>[ _n;_m ff ! 141: Move the cursor to column _m of row _n in the display. ! 142: ! 143: <eesscc>[ _n;_m gg ! 144: Position cursor to column _m of line _n. Positioning is ! 145: relative to the scrolling region. ! 146: ! 147: <eesscc>[ _n mm ! 148: Select graphics rendition: ! 149: 00 All attributes off. ! 150: 11 Bold intensity. ! 151: 44 Underscore on. ! 152: 55 Blink on. ! 153: 77 Reverse video. ! 154: 3300 Black foreground. ! 155: 3311 Red foreground. ! 156: 3322 Green foreground. ! 157: 3333 Brown foreground. ! 158: 3344 Blue foreground. ! 159: 3355 Magenta foreground. ! 160: 3366 Cyan foreground. ! 161: 3377 White foreground. ! 162: 4400 Black background. ! 163: 4411 Red background. ! 164: 4422 Green background. ! 165: 4433 Brown background. ! 166: 4444 Blue background. ! 167: 4455 Magenta background. ! 168: 4466 Cyan background. ! 169: 4477 White background. ! 170: 5500 Black border. ! 171: 5511 Red border. ! 172: 5522 Green border. ! 173: 5533 Brown border. ! 174: 5544 Blue border. ! 175: 5555 Magenta border. ! 176: 5566 Cyan border. ! 177: 5577 White border. ! 178: ! 179: ! 180: <eesscc>[ _n;_m rr ! 181: Display lines _n through _m become the scrolling region. ! 182: ! 183: <eesscc>[ _n vv ! 184: Select cursor rendition: ! 185: 00 Cursor visible. ! 186: 11 Cursor invisible. ! 187: ! 188: ! 189: <eesscc>[?44hh Enable smooth scrolling. This eliminates snow at the ! 190: expense of speed. ! 191: ! 192: <eesscc>[?44ll Disable smooth scrolling (default). ! 193: ! 194: ! 195: ! 196: COHERENT Lexicon Page 3 ! 197: ! 198: ! 199: ! 200: ! 201: console Device Driver console ! 202: ! 203: ! 204: ! 205: <eesscc>[?77hh Enable wraparound. Typing past column 80 moves the ! 206: cursor to the first column of the next line, scrolling ! 207: if necessary. ! 208: ! 209: <eesscc>[?77ll Disable wraparound. The cursor will not move past ! 210: column 80. This is useful if the screen is being used ! 211: as a block mode interface. ! 212: ! 213: <eesscc>` Disable manual input. Terminal ``beeps'' (outputs ! 214: <ccttrrll-GG>) when a key is typed on the keyboard. Inter- ! 215: rupt and quit signals are still passed to the terminal ! 216: process. Input may be renabled via <eesscc>cc (power up ! 217: reset) or <eesscc>bb (enable manual input). ! 218: ! 219: <eesscc>bb Enable keyboard input that has been disabled by <eesscc>` ! 220: (disable manual input). ! 221: ! 222: <eesscc>tt Enter keypad-shifted mode. ! 223: ! 224: <eesscc>uu Exit keypad-shifted mode. ! 225: ! 226: The console keyboard sends the expected ASCII characters for the ! 227: usual alphabetic, numeric, and punctuation keys. The numeric ! 228: keypad normally sends editing escape sequences, as described ! 229: below. When shifted or in num-lock mode, it sends `0' to `9' and ! 230: `.' instead. In num-lock mode (i.e., when the <num-lock> key is ! 231: depressed, <shift> restores the normal escape sequences. In al- ! 232: ternate-keypad mode, the numeric keypad sends "<eesscc>? pp" to ! 233: ``<eesscc>? yy'' for `0' to `9' and ``<eesscc>? nn'' for `.'. ! 234: ! 235: <hhoommee> Send ``cursor home'' (<eesscc>[ HH). ! 236: ! 237: <uupp> Send ``cursor up'' (<eesscc>[ AA). ! 238: ! 239: <ppgg uupp> Send (<eesscc>[ VV). ! 240: ! 241: <lleefftt> Send ``cursor left'' (<eesscc>[ DD). ! 242: ! 243: <rriigghhtt> Send ``cursor right'' (<eesscc>[ CC). ! 244: ! 245: <eenndd> Send cursor to bottom left of screen (<eesscc>[ 2244 HH). ! 246: ! 247: <ddoowwnn> Send ``cursor down'' (<eesscc>[ BB). ! 248: ! 249: <ppgg ddnn> Move cursor to previous page (<eesscc>[ UU). ! 250: ! 251: <iinnss> Toggle insert mode (<eesscc>[ @). ! 252: ! 253: <ddeell> Delete the character at the cursor (<eesscc>[ PP). ! 254: ! 255: The effects of the remaining keys are described below: ! 256: ! 257: FF11-FF1100 Send <eesscc>[ 11 xx ... <eesscc>[ 99 xx, <eesscc>[ 00 xx. ! 258: ! 259: ! 260: ! 261: ! 262: COHERENT Lexicon Page 4 ! 263: ! 264: ! 265: ! 266: ! 267: console Device Driver console ! 268: ! 269: ! 270: ! 271: <aalltt>FF11-FF1100 Send <eesscc>[ 11 yy ... <eesscc>[ 99 yy, <eesscc>[ 00 yy. ! 272: ! 273: <eesscc> Mark the beginning of an escape sequence; <esc><esc> ! 274: sends ASCII ESC. ! 275: ! 276: <ttaabb> Send ASCII HT. ! 277: ! 278: <ccttrrll> When combined with `A' through `_', send the cor- ! 279: responding ASCII control character; when combined ! 280: with <rreettuurrnn>, send ASCII LF; when combined with ! 281: <backspace> send ASCII DEL; when combined with <alt> ! 282: and <del>, issue system reset. <ctrl-X> cancels an ! 283: escape sequence. ! 284: ! 285: <sshhiifftt> Change alphabetic keys from lower case to upper ! 286: case, or from upper case to lower case in ``caps ! 287: lock'' mode. ! 288: ! 289: <aalltt> When combined with <ctrl-alt-del>, issue a system ! 290: reset. ! 291: ! 292: <bbaacckkssppaaccee> Send ASCII BS; when combined with <ctrl>, send ASCII ! 293: DEL. ! 294: ! 295: <rreettuurrnn> Send ASCII CR; when combined with <ctrl>, send ASCII ! 296: LF. ! 297: ! 298: * Send ASCII `*'. ! 299: ! 300: <ccaappss lloocckk> Toggle ``caps lock'' mode. ! 301: ! 302: <nnuumm lloocckk> Toggle the interpretation of the numeric keypad, as ! 303: described above. ! 304: ! 305: <ssccrroollll lloocckk> ! 306: Toggle console output, like <ctrl-S> and <ctrl-Q>; ! 307: when combined with <ctrl>, send signal SIGINT; when ! 308: combined with <alt>, sends signal SIGQUIT. ! 309: ! 310: - Send `-'. ! 311: ! 312: + Send `+'. ! 313: ! 314: ***** Files ***** ! 315: ! 316: /dev/console ! 317: ! 318: ***** See Also ***** ! 319: ! 320: ASCII, device drivers, signal() ! 321: ! 322: ! 323: ! 324: ! 325: ! 326: ! 327: ! 328: COHERENT Lexicon Page 5 ! 329: ! 330:
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.