File:  [MW Coherent from dump] / coherent / a / usr / man / COHERENT / console
Revision 1.1.1.1 (vendor branch): download - view: text, annotated - select for diffs
Wed May 29 04:56:34 2019 UTC (7 years ago) by root
Branches: MarkWilliams, MAIN
CVS tags: relic, HEAD
coherent



console                   Device Driver                   console




Console device driver


/dev/console is  the device driver for the  console of a COHERENT
system on the  IBM AT.  It is assigned major  device number 2 and
minor device number 0.

/dev/console  interprets escape  sequences in  console  output to
control output  on the  console monitor.  These  escape sequences
are compatible with ANSI  X3.25.  Thus, they are similar to those
used by the DEC VT-100 and VT-220 terminals.

The special sequences include the following:

<eesscc>>=   Enter alternate keypad mode.

<eesscc>>    Exit alternate keypad mode.

<eesscc>nn    Print the corresponding special graphics character.

<eesscc>77    Save the current cursor position.

<eesscc>88    Restore the previously saved cursor position.

<eesscc>cc    Reset to power-up configuration

<eesscc>DD     Move the  cursor down  one  line without  changing the
          column  position.   This  command moves  the  scrolling
          region text up and inserts blank lines if required.

<eesscc>EE    Move  the cursor to the first column  of the next line.
          This command move the scrolling region down and inserts
          blank line if required.

<eesscc>MM     Move the  cursor up one  line without  changing column
          position

<eesscc>[ AA  Cursor up; stop at top of page.

<eesscc>[ BB  Cursor down; stop at bottom edge of scrolling region.

<eesscc>[ CC  Cursor right.  Stop at right bottom corner of scrolling
          region.

<eesscc>[ DD  Cursor left.

<eesscc>[ EE  Cursor next  line.  Move scrolling region up and insert
          a blank line if required.

<eesscc>[ FF  Move scrolling region text down and insert a blank line
          if required.

<eesscc>[ _n GG
          Move the cursor to the _nth column of the current line.


COHERENT Lexicon                                           Page 1




console                   Device Driver                   console




<eesscc>[ _n;_m HH
          Move the cursor  to position m n.  Position is relative
          to the scrolling region.

<eesscc>[ II  Move the cursor position to the next horizontal tabula-
          tion stop.

<eesscc>[ _n JJ
          Erase display:
          00       Erase from cursor to end of screen.
          11       Erase from beginning of screen to cursor.
          22       Erase the entire screen.


<eesscc>[ _n KK
          Erase line:
          00       Erase from cursor to end of line.
          11       Erase from beginning of line to cursor.
          22       Erase entire line.


<eesscc>[ LL  Insert a line.

<eesscc>[ MM  Delete a line.

<eesscc>[ _n OO
          Erase scrolling region:
          00       Erase from cursor to end of scrolling region.
          11       Erase from beginning of scrolling region to cursor.
          22       Erase entire scrolling region.  Reposition cursor at
                  top left corner of scrolling region.


<eesscc>[ SS   Scroll the characters  in the scrolling  region up one
          line.  The bottom of the scrolling region is cleared to
          blanks.

<eesscc>[ TT  Scroll the  characters in the scrolling region down one
          line.  The top  line of the scrolling region is cleared
          to blanks.

<eesscc>[ ZZ  Move the cursor backwards to the last tabulation stop.

<eesscc>[ _n `
          Move the cursor to column _n of the current line.

<eesscc>[ _n aa
          Move the cursor forward n columns in the current line.

<eesscc>[ _n dd
          Move the cursor to row _n of the display.

<eesscc>[ _n ee
          Move the cursor down _n rows.


COHERENT Lexicon                                           Page 2




console                   Device Driver                   console




<eesscc>[ _n;_m ff
          Move the cursor to column _m of row _n in the display.

<eesscc>[ _n;_m gg
          Position cursor to  column _m of line _n.  Positioning is
          relative to the scrolling region.

<eesscc>[ _n mm
          Select graphics rendition:
          00       All attributes off.
          11       Bold intensity.
          44       Underscore on.
          55       Blink on.
          77       Reverse video.
          3300      Black foreground.
          3311      Red foreground.
          3322      Green foreground.
          3333      Brown foreground.
          3344      Blue foreground.
          3355      Magenta foreground.
          3366      Cyan foreground.
          3377      White foreground.
          4400      Black background.
          4411      Red background.
          4422      Green background.
          4433      Brown background.
          4444      Blue background.
          4455      Magenta background.
          4466      Cyan background.
          4477      White  background.
          5500      Black border.
          5511      Red border.
          5522      Green border.
          5533      Brown border.
          5544      Blue border.
          5555      Magenta border.
          5566      Cyan border.
          5577      White border.


<eesscc>[ _n;_m rr
          Display lines _n through _m become the scrolling region.

<eesscc>[ _n vv
          Select cursor rendition:
          00       Cursor visible.
          11       Cursor invisible.


<eesscc>[?44hh Enable  smooth scrolling.  This eliminates  snow at the
          expense of speed.

<eesscc>[?44ll Disable smooth scrolling (default).



COHERENT Lexicon                                           Page 3




console                   Device Driver                   console



<eesscc>[?77hh  Enable wraparound.   Typing past  column 80  moves the
          cursor to the  first column of the next line, scrolling
          if necessary.

<eesscc>[?77ll  Disable wraparound.   The  cursor will  not move  past
          column 80.  This is  useful if the screen is being used
          as a block mode interface.

<eesscc>`     Disable  manual  input.  Terminal  ``beeps''  (outputs
          <ccttrrll-GG>) when a  key is typed on the keyboard.  Inter-
          rupt and quit  signals are still passed to the terminal
          process.  Input  may be  renabled via <eesscc>cc  (power up
          reset) or <eesscc>bb (enable manual input).

<eesscc>bb    Enable keyboard  input that has been disabled by <eesscc>`
          (disable manual input).

<eesscc>tt    Enter keypad-shifted mode.

<eesscc>uu    Exit keypad-shifted mode.

The console keyboard  sends the expected ASCII characters for the
usual  alphabetic, numeric,  and punctuation  keys.   The numeric
keypad  normally  sends editing  escape  sequences, as  described
below.  When shifted or in num-lock mode, it sends `0' to `9' and
`.' instead.  In num-lock  mode (i.e., when the <num-lock> key is
depressed, <shift> restores  the normal escape sequences.  In al-
ternate-keypad  mode,  the numeric  keypad  sends  "<eesscc>? pp"  to
``<eesscc>? yy'' for `0' to `9' and ``<eesscc>? nn'' for `.'.

<hhoommee>       Send ``cursor home'' (<eesscc>[ HH).

<uupp>         Send ``cursor up'' (<eesscc>[ AA).

<ppgg uupp>      Send (<eesscc>[ VV).

<lleefftt>       Send ``cursor left'' (<eesscc>[ DD).

<rriigghhtt>      Send ``cursor right'' (<eesscc>[ CC).

<eenndd>        Send cursor to bottom left of screen (<eesscc>[ 2244 HH).

<ddoowwnn>       Send ``cursor down'' (<eesscc>[ BB).

<ppgg ddnn>      Move cursor to previous page (<eesscc>[ UU).

<iinnss>        Toggle insert mode (<eesscc>[ @).

<ddeell>        Delete the character at the cursor (<eesscc>[ PP).

The effects of the remaining keys are described below:

FF11-FF1100       Send <eesscc>[ 11 xx ... <eesscc>[ 99 xx, <eesscc>[ 00 xx.




COHERENT Lexicon                                           Page 4




console                   Device Driver                   console



<aalltt>FF11-FF1100  Send <eesscc>[ 11 yy ... <eesscc>[ 99 yy, <eesscc>[ 00 yy.

<eesscc>        Mark the beginning of an escape sequence; <esc><esc>
             sends ASCII ESC.

<ttaabb>        Send ASCII HT.

<ccttrrll>       When combined  with `A'  through `_', send  the cor-
             responding ASCII  control  character; when  combined
             with <rreettuurrnn>,  send  ASCII LF;  when combined  with
             <backspace> send ASCII DEL; when combined with <alt>
             and <del>, issue system  reset.  <ctrl-X> cancels an
             escape sequence.

<sshhiifftt>      Change  alphabetic  keys from  lower  case to  upper
             case, or  from upper  case to  lower case  in ``caps
             lock'' mode.

<aalltt>        When  combined with  <ctrl-alt-del>, issue  a system
             reset.

<bbaacckkssppaaccee>  Send ASCII BS; when combined with <ctrl>, send ASCII
             DEL.

<rreettuurrnn>     Send ASCII CR; when combined with <ctrl>, send ASCII
             LF.

*            Send ASCII `*'.

<ccaappss lloocckk>  Toggle ``caps lock'' mode.

<nnuumm lloocckk>   Toggle the interpretation of  the numeric keypad, as
             described above.

<ssccrroollll lloocckk>
             Toggle console output,  like <ctrl-S>  and <ctrl-Q>;
             when combined with <ctrl>,  send signal SIGINT; when
             combined with <alt>, sends signal SIGQUIT.

-            Send `-'.

+            Send `+'.

***** Files *****

/dev/console

***** See Also *****

ASCII, device drivers, signal()







COHERENT Lexicon                                           Page 5



unix.superglobalmegacorp.com

This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.