home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / archives / ckc072.zip / ckmvt1.doc < prev    next >
Text File  |  1988-08-16  |  6KB  |  196 lines

  1. The following VT100 escape sequences are performed by MacKermit 0.8(34) VT100
  2. emulation:
  3.  
  4. Cursor Movement Commands:
  5.  
  6.     Cursor Up                           ESC[PnA
  7.     Cursor Down                         ESC[PnB
  8.     Cursor Forward (right)              ESC[PnC
  9.     Cursor Backward (left)              ESC[PnD
  10.     Direct Cursor Addressing            ESC[Pl;PcH or ESC[Pl;Pcf
  11.     Index                               ESC D
  12.     New Line                            ESC E
  13.     Reverse Index                       ESC M
  14.     Save Cursor Attributes              ESC 7
  15.     Restore Cursor Attributes           ESC 8
  16.  
  17. Character Attributes:
  18.  
  19.     ESC[Ps m
  20.  
  21.     where Ps refers to a selective parameter as follows:
  22.  
  23.         0 or none               All Attributes Off
  24.         1                       Bold on
  25.         4                       Underscore on
  26.         5                       Reverse Video on (VT100 uses Blink)
  27.         7                       Reverse Video on
  28.  
  29. Erasing:
  30.  
  31.     From Cursor to End of Line          ESC[K or ESC[0K
  32.     From Beginning of Line to Cursor    ESC[1K
  33.     Entire Line containing Cursor       ESC[2K
  34.     From Cursor to End of Screen        ESC[J or ESC[0J
  35.     From Beginning of Screen to Cursor  ESC[1J
  36.     Entire Screen                       ESC[2J
  37.  
  38. Character Sets:
  39.  
  40.     The G0 and G1 character sets are designated as follows:
  41.  
  42.     Character Set               G0 designator   G1 designator
  43.  
  44.     United Kingdom (UK)         ESC(A           ESC)A
  45.     United States (USASCII)     ESC(B           ESC)B
  46.     Special graphics characters ESC(0           ESC)0
  47.       and line drawing set
  48.     [Alternate Set] (USASCII)   ESC(1           ESC)1
  49.     [Alternate Set] (USASCII)   ESC(2           ESC)2
  50.       and special graphics
  51.  
  52. Scrolling Region:
  53.  
  54.     ESC[Pt;Pb r
  55.  
  56.     Pt is the number of the line of the top of the scrolling region; Pb is the
  57.     number of the bottom line of the scroling region and must be greater than
  58.     Pt.
  59.  
  60. Tab Stops:
  61.  
  62.     Set tab at current position                 ESC H
  63.     Clear tab as current position               ESC[g or ESC[0g
  64.     Clear all tabs                              ESC[3g
  65.  
  66. Modes:
  67.                             To Set                  To Reset
  68.     Mode Name           Mode      Sequence      Mode      Sequence
  69.  
  70.     Insert/Replace      Insert    ESC[4h        Replace   ESC[4l
  71.     LineFeed/NewLine    NewLine   ESC[20h       LineFeed  ESC[20l
  72.     Screen Mode         Reverse   ESC[?5h       Normal    ESC[?5l
  73.     Origin Mode         Relative  ESC[?6h       Absolute  ESC[?6l
  74.     Wraparound          On        ESC[?7h       Off       ESC[?7l
  75.     Auto Repeat         On        ESC[?8h       Off       ESC[?8l
  76.  
  77. Reports:
  78.  
  79.     Cursor Position Report
  80.  
  81.     Invoked by          ESC[6n
  82.     Response            ESC[Pl;PcR
  83.  
  84.     Status Report
  85.  
  86.     Invoked by          ESC[5n
  87.     Response            ESC[0n  (terminal OK)
  88.  
  89.     What Are You?
  90.  
  91.     Invoked by          ESC[c or ESC[0c
  92.     Response            ESC[?1;2c  (VT100 with AVO, Advanced Video Option)
  93.  
  94.     Printer Status Report
  95.  
  96.     Invoked by          ESC[?15n
  97.     Response            ESC[?13n  (no printer)
  98.  
  99. Editing:
  100.  
  101.     Insertion Mode: Enter       ESC[4h
  102.     Exit (Replacement Mode)     ESC[4l
  103.  
  104.     Delete Character            ESC[PnP
  105.     Delete Line                 ESC[PnM
  106.     Insert Line                 ESC[PnL
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117. The following sequences are NOT performed by MacKermit VT100 emulation:
  118.  
  119. Line Size:
  120.  
  121.     Change this line to double-height top half          ESC#3
  122.     Change this line to double-height bottom half       ESC#4
  123.     Change this line to single-width single-height      ESC#5
  124.     Change this line to double-width single-height      ESC#6
  125.  
  126. Character Attributes:
  127.  
  128.     ESC[5m      uses reverse video, not blinking video
  129.  
  130. Programmable LEDS:
  131.  
  132.     ESC[Ps q    set LED on or off
  133.  
  134. Modes:
  135.                             To Set                  To Reset
  136.     Mode Name           Mode      Sequence      Mode      Sequence
  137.  
  138.     Cursor Key Mode     Application ESC[?1h     Cursor    ESC[?1l
  139.     ANSI/VT52 Mode      ANSI        N/A         VT52      ESC[?2l
  140.     Column Mode         132 Col     ESC[?3h     80 Col    ESC[?3l
  141.     Scrolling Mode      Smooth      ESC[?4h     Jump      ESC[?4l
  142.     Interlace           On          ESC[?9h     Off       ESC[?9l
  143.     Keypad Mode         Application ESC=        Numeric   ESC[>
  144.  
  145.     Print Termination   Form Feed   ESC[18h     None      ESC[18l
  146.     Print Extent        Full Page   ESC[19h     Window    ESC[19l
  147.  
  148. Print Control Sequences:
  149.  
  150.     Auto Print Mode: Enter              ESC[?5i
  151.                      Exit               ESC[?4i
  152.     Printer Controller mode: Enter      ESC[5i
  153.                              Exit       ESC[4i
  154.     Print Line                          ESC[?1i
  155.     Print Page                          ESC[i
  156.  
  157. Report Terminal Parameters:
  158.  
  159.     ESC[P1 n
  160.  
  161.     Request terminal parameters
  162.  
  163. Reset:
  164.  
  165.     ESC c
  166.  
  167. Confidence Tests:
  168.  
  169.     ESC#8
  170.     ESC[2;Ps y
  171.  
  172. All VT52 mode commands:
  173.  
  174.     Cursor Up                           ESC A
  175.     Cursor Down                         ESC B
  176.     Cursor Right                        ESC C
  177.     Cursor Left                         ESC D
  178.     Select Special Graphics             ESC F
  179.     Select ASCII Characters             ESC G
  180.     Cursor to Home                      ESC H
  181.     Reverse Line Feed                   ESC I
  182.     Erase to End of Screen              ESC J
  183.     Erase to End of Line                ESC K
  184.     Direct Cursor Address               ESC Y l c
  185.     Identify                            ESC Z           response:  ESC / Z
  186.     Enter Alternate Keypad Mode         ESC =
  187.     Exit Alternate Keypad Mode          ESC >
  188.     Enter ANSI mode                     ESC <
  189.  
  190.     Enter Printer Controller mode       ESC W
  191.     Exit Printer Controller Mode        ESC X
  192.     Enter Auto Print Mode               ESC ?
  193.     Exit Auto Print Mode                ESC _
  194.     Print Line                          ESC V
  195.     Print Page                          ESC ]
  196.