home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / terminal / 1582 < prev    next >
Encoding:
Text File  |  1993-01-28  |  5.5 KB  |  174 lines

  1. Newsgroups: comp.terminals
  2. Path: sparky!uunet!ukma!bogus.sura.net!opusc!usceast!chan
  3. From: chan@ece.scarolina.edu (Simon Chan)
  4. Subject: VT100 Reference Card !! ( if you are looking for....)
  5. Message-ID: <chan.728236678@hertz>
  6. Keywords: vt100 terminal escape codes
  7. Sender: usenet@usceast.cs.scarolina.edu (USENET News System)
  8. Organization: USC  Department of Computer Science
  9. Date: 28 Jan 93 15:57:58 GMT
  10. Lines: 162
  11.  
  12.  
  13.  
  14. Taken from VT100 Programming Reference Card (DIGITAL)
  15.  
  16. ANSI Compatible Mode
  17.  
  18.     Cursor Movement Commands
  19.         Cursor up            ESC [ Pn A
  20.         Cursor down            ESC [ Pn B
  21.         Cursor forward (right)        ESC [ Pn C
  22.         Cursor backward (left)        ESC [ Pn D
  23.         Direct cursor addressing    ESC [ Pl; Pc H    or
  24.                         ESC [ Pl; Pc f
  25.         Index                ESC D
  26.         Next Line            ESC E
  27.         Reverse index            ESC M
  28.         Save cursor and attributes    ESC 7
  29.         Restore cursor and attributes    ESC 8
  30.         * Pn = decimal parameter in string of ASCII digits.(default 1)
  31.         * Pl = line number (default 0); Pc = column number (default 0)
  32.  
  33.     Line Size (Double-Height and Double-Width) Commands
  34.         Change this line to double-height top half    ESC # 3
  35.         Change this line to double-height bottom half    ESC # 4
  36.         Change this line to single-width single-height    ESC # 5
  37.         Change this line to double-width single-height    ESC # 6
  38.  
  39.     Character Attributes
  40.         ESC [ Ps;Ps;Ps;...,Ps m
  41.         Ps =    0 or None    All Attributes Off
  42.             1        Bold on
  43.             4        Underscore on
  44.             5        Blink on
  45.             7        Reverse video on
  46.         Any other parameter values are ignored.
  47.  
  48.     Erasing
  49.         From cursor to end of line        ESC [ K  or ESC [ 0 K
  50.         From beginning of line to cursor    ESC [ 1 K
  51.         Entire line containing cursor        ESC [ 2 K
  52.         From cursor to end of screen        ESC [ J  or ESC [ 0 J
  53.         From beginning of screen to cursor    ESC [ 1 J
  54.         Entire screen                ESC [ 2 J
  55.  
  56.     Programmable LEDs
  57.         ESC [ Ps;Ps;...Ps q
  58.         Ps =    0 or None    All LEDs Off
  59.             1        L1 on
  60.             2        L2 on
  61.             3        L3 on
  62.             4        L4 on
  63.         Any other parameter values are ignored.
  64.  
  65.     Character Set (G0 and G1 Designators)
  66.         Charactor Set            G0 Designator    G1 Designator
  67.         United Kingdom (UK)        ESC ( A        ESC ) A
  68.         United States (USASCII)        ESC ( B        ESC ) B
  69.         Special graphics characters    ESC ( 0        ESC ) 0
  70.          and line drawing set
  71.         Alternate character ROM        ESC ( 1        ESC ) 1
  72.         Alternate character ROM        ESC ( 2        ESC ) 2
  73.          special graphics characters
  74.  
  75.     Scrolling Region
  76.         ESC [ Pt ; Pb r
  77.         Pt is the number of the top line of the scrolling region;
  78.         Pb is the number of the bottom line of the scrolling region 
  79.         and must be greater than  Pt.
  80.         (The default for Pt is line 1, the default for Pb is the end 
  81.          of the screen)
  82.  
  83.     TAB stops
  84.         Set tab at current column        ESC H
  85.         Clear tab at curent column        ESC [ g or ESC [ 0 g
  86.         Clear all tabs                ESC [ 3 g
  87.  
  88.     Modes
  89.                               To Set                To Reset
  90.     Mode Name            Mode        Sequence   Mode        Sequence
  91.     Line feed/new line   New line    ESC [20h   Line feed   ESC [20l
  92.     Cursor key mode         Application ESC [?1h   Cursor      ESC [?l
  93.     ANSI/VT52 mode       ANSI        N/A        VT52        ESC [?2l
  94.     Column mode          132 Col     ESC [?3h   80 Col      ESC [?3l
  95.     Scrolling mode       Smooth      ESC [?4h   Jump        ESC [?4l
  96.     Screen mode          Reverse     ESC [?5h   Normal      ESC [?5l
  97.     Origin mode          Relative    ESC [?6h   Absolute    ESC [?6l
  98.     Wraparound           On          ESC [?7h   Off         ESC [?7l
  99.     Auto repeat          On          ESC [?8h   Off         ESC [?8l
  100.     Interlace            On          ESC [?9h   Off         ESC [?9l
  101.     Graphic proc. option On          ESC 1      Off         ESC 2
  102.     Keypad mode          Application ESC =      Numeric     ESC >
  103.  
  104.     Reports
  105.         Cursor Position Report
  106.         Invoked by            ESC [ 6 n
  107.         Response is            ESC [ Pl; Pc R
  108.         * Pl = line number; Pc = column number
  109.  
  110.     Status Report
  111.         Invoked by            ESC [ 5 n
  112.         Response is            ESC [ 0 n  (terminal ok)
  113.                         ESC [ 3 n  (terminal not ok)
  114.  
  115.     What Are You
  116.         Invoked by            ESC [ c  or  ESC [ O c
  117.         Response is            ESC [ ?1 ; Ps C
  118.         Ps =    0    Base VT100, no options
  119.             1    Processor option (STP)
  120.             2    Advanced Video option (AVO)
  121.             3    AVO and STP
  122.             4    Graphocs processor option (GO)
  123.             5    GO and STP
  124.             6    GO and AVO
  125.             7    GO, STP, and AVO
  126.     Alternately invoked by ESC Z (not recommended.) Response is the same.
  127.  
  128.     Reset
  129.         ESC c
  130.  
  131.     Confidence Tests
  132.     Fill Screen with "Es"        ESC # 8
  133.     Invoke Test(s)            ESC [ 2 ; Ps y
  134.     Ps =    1                Power-up self test
  135.                         (ROM checksum, RAM, NVR,
  136.                         keyboard and AVO if installed)
  137.         2(loop back connector required)    Data Loop Back
  138.         4(loop back connector required)    ETA Modern Control Test
  139.         8                Repeat selected test(s)
  140.                         indefinitely
  141.                         (until failure or power off)
  142.  
  143. VT52 Compatible Mode
  144.     Cursor Up                ESC A
  145.     Cursor Down                ESC B
  146.     Cursor Right                ESC C
  147.     Cursor Left                ESC D
  148.     Select Special Graphics character set    ESC F
  149.     Select ASCII character set        ESC G
  150.     Cursor to home                ESC H
  151.     Reverse line feed            ESC I
  152.     Erase to end of screen            ESC J
  153.     Erase to end of line            ESC K
  154.     Direct cursor address            ESC Ylc        (see note 1)
  155.     Identify                ESC Z        (see note 2)
  156.     Enter alternate keypad mode        ESC =
  157.     Exit alternate keypad mode        ESC >
  158.     Enter ANSI mode                ESC <
  159.  
  160.     NOTE 1: Line and column numbers for direct cursor address are single
  161.         character codes whose values are the desired number plus
  162.         37 (in Octal). Line and column numbers start at 1.
  163.     NOTE 2: Response to ESC Z is ESC / Z.
  164.  
  165.  
  166.  
  167. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  168. Simon Chan                    chan@ece.scarolina.edu
  169. Department of Electrical & Computer Engineering
  170. Swearingen Engineering Centre 
  171. University of South Carolina 
  172. Coulmbia, South Carolina 29208 
  173. -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
  174.