Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ xterm() — bsd — Apollo Domain/OS SR10.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought



 XTERM(control sequences)       X Version 11        XTERM(control sequences)

                                  Release 4



 NAME
      XTERM control sequences

 DESCRIPTION
      The xterm program, a terminal emulator for the X Window System,
      provides DEC VT102 and Tektronix 4014 terminal emulation.

      Since the terminals being emulated respond to escape sequences, xterm
      also responds to escape sequences.  The sequences listed here include
      those appropriate for both terminal emulation modes.

 Definitions
      C                   A single (required) character.

      Ps

      Ps                  A single (usually optional) numeric parameter,
                          composed of one of more digits.

      Pm                  A multiple numeric parameter composed of any
                          number of single numeric parameters, separated by
                          ;  character(s).

      Pt                  A text parameter composed of printable characters.

 VT102 Mode
      Most of these control sequences are standard VT102 control sequences.
      There are, however, additional ones to provide control of xterm
      dependent functions, like the scrollbar or window size.

      BEL                 Bell (Ctrl-G)
      BS                  Backspace (Ctrl-H)
      TAB                 Horizontal Tab (Ctrl-I)
      LF                  Line Feed or New Line (Ctrl-J)
      VT                  Vertical Tab (Ctrl-K)
      FF                  Form Feed or New Page (Ctrl-L)
      CR                  Carriage Return (Ctrl-M)
      SO                  Shift Out (Ctrl-N) -> Switch to Alternate
                          Character Set
      SI                  Shift In (Ctrl-O) -> Switch to Standard Character
                          Set
      ESC # 8             DEC Screen Alignment Test (DECALN)
      ESC ( C             Select G0 Character Set (SCS)
                            C = 0 -> Special Character and Line Drawing Set
                            C = A -> United Kingdom (UK)
                            C = B -> United States (USASCII)
      ESC ) C             Select G1 Character Set (SCS)
                            C = 0 -> Special Character and Line Drawing Set
                            C = A -> United Kingdom (UK)
                            C = B -> United States (USASCII)



 Hewlett-Packard Company            - 1 -                   X Window System





 XTERM(control sequences)       X Version 11        XTERM(control sequences)

                                  Release 4



      ESC * C             Select G2 Character Set (SCS)
                            C = 0 -> Special Character and Line Drawing Set
                            C = A -> United Kingdom (UK)
                            C = B -> United States (USASCII)
      ESC + C             Select G3 Character Set (SCS)
                            C = 0 -> Special Character and Line Drawing Set
                            C = A -> United Kingdom (UK)
                            C = B -> United States (USASCII)
      ESC 7               Save Cursor (DECSC)
      ESC 8               Restore Cursor (DECRC)
      ESC =               Application Keypad (DECPAM)
      ESC >               Normal Keypad (DECPNM)
      ESC D               Index (IND)
      ESC E               Next Line (NEL)
      ESC H               Tab Set (HTS)
      ESC M               Reverse Index (RI)
      ESC N               Single Shift Select of G2 Character Set (SS2)
      ESC O               Single Shift Select of G3 Character Set (SS3)
      ESC Z               Return Terminal ID (DECID)
      ESC [ Ps @          Insert Ps  (Blank) Character(s) (default = 1)
                          (ICH)
      ESC [ Ps A          Cursor Up Ps  Times (default = 1) (CUU)
      ESC [ Ps B          Cursor Down Ps  Times (default = 1) (CUD)
      ESC [ Ps C          Cursor Forward Ps  Times (default = 1) (CUF)
      ESC [ Ps D          Cursor Backward Ps  Times (default = 1) (CUB)
      ESC [ Ps ; Ps H     Cursor Position [row;column] (default = [1,1])
                          (CUP)
      ESC [ Ps J          Erase in Display (ED)
                            Ps  = 0 -> Clear Below (default)
                            Ps  = 1 -> Clear Above
                            Ps  = 2 -> Clear All
      ESC [ Ps K          Erase in Line (EL)
                            Ps  = 0 -> Clear to Right (default)
                            Ps  = 1 -> Clear to Left
                            Ps  = 2 -> Clear All
      ESC [ Ps L          Insert Ps  Line(s) (default = 1) (IL)
      ESC [ Ps M          Delete Ps  Line(s) (default = 1) (DL)
      ESC [ Ps P          Delete Ps  Character(s) (default = 1) (DCH)
      ESC [ Ps c          Device Attributes (default 0) (DA)
      ESC [ Ps ; Ps f     Horizontal and Vertical Position [row;column]
                          (default = [1,1]) (HVP)
      ESC [ Ps g          Tab Clear
                            Ps  = 0 -> Clear Current Column (default)
                            Ps  = 3 -> Clear All
      ESC [ Ps h          Mode Set (SET)
                            Ps  = 4 -> Insert Mode (IRM)
                            Ps  = 20 -> Automatic Linefeed (LNM)
      ESC [ Ps l          Mode Reset (RST)
                            Ps  = 4 -> Insert Mode (IRM)
                            Ps  = 20 -> Automatic Linefeed (LNM)



 Hewlett-Packard Company            - 2 -                   X Window System





 XTERM(control sequences)       X Version 11        XTERM(control sequences)

                                  Release 4



      ESC [ Pm m          Character Attributes (SGR)
                            Ps  = 0 -> Normal (default)
                            Ps  = 1 -> Blink (appears as Bold)
                            Ps  = 4 -> Underscore
                            Ps  = 5 -> Bold
                            Ps  = 7 -> Inverse
      ESC [ Ps n          Device Status Report (DSR)
                            Ps  = 5 -> Status Report ESC [ 0n -> OK
                            Ps  = 6 -> Report Cursor Position (CPR)
                          [row;column] as ESC [ r; cR
      ESC [ Ps ; Ps r     Set Scrolling Region [top;bottom] (default = full
                          size of window) (DECSTBM)
      ESC [ Ps x          Request Terminal Parameters (DECREQTPARM)
      ESC [ ? Ps h        DEC Private Mode Set (DECSET)
                            Ps  = 1 -> Application Cursor Keys (DECCKM)
                            Ps  = 3 -> 132 Column Mode (DECCOLM)
                            Ps  = 4 -> Smooth (Slow) Scroll (DECSCLM)
                            Ps  = 5 -> Reverse Video (DECSCNM)
                            Ps  = 6 -> Origin Mode (DECOM)
                            Ps  = 7 -> Wraparound Mode (DECAWM)
                            Ps  = 8 -> Auto-repeat Keys (DECARM)
                            Ps  = 9 -> Send MIT Mouse Row & Column on Button
                          Press
                            Ps  = 38 -> Enter Tektronix Mode (DECTEK)
                            Ps  = 40 -> Allow 80 -> 132 Mode
                            Ps  = 41 -> curses(5) fix
                            Ps  = 44 -> Turn On Margin Bell
                            Ps  = 45 -> Reverse-wraparound Mode
                            Ps  = 46 -> Start Logging
                            Ps  = 47 -> Use Alternate Screen Buffer
                            Ps  = 1000 -> Send VT200 Mouse Row & Column on
                          Button Press
                            Ps  = 1003 -> Send VT200 Hilite Mouse Row &
                          Column on Button Press
      ESC [ ? Ps l        DEC Private Mode Reset (DECRST)
                            Ps  = 1 -> Normal Cursor Keys (DECCKM)
                            Ps  = 3 -> 80 Column Mode (DECCOLM)
                            Ps  = 4 -> Jump (Fast) Scroll (DECSCLM)
                            Ps  = 5 -> Normal Video (DECSCNM)
                            Ps  = 6 -> Normal Cursor Mode (DECOM)
                            Ps  = 7 -> No Wraparound Mode (DECAWM)
                            Ps  = 8 -> No Auto-repeat Keys (DECARM)
                            Ps  = 9 -> Don't Send Mouse Row & Column on
                          Button Press
                            Ps  = 40 -> Disallow 80 -> 132 Mode
                            Ps  = 41 -> No curses(5) fix
                            Ps  = 44 -> Turn Off Margin Bell
                            Ps  = 45 -> No Reverse-wraparound Mode
                            Ps  = 46 -> Stop Logging
                            Ps  = 47 -> Use Normal Screen Buffer
                            Ps  = 1000 -> Don't Send Mouse Row & Column on


 Hewlett-Packard Company            - 3 -                   X Window System





 XTERM(control sequences)       X Version 11        XTERM(control sequences)

                                  Release 4



                          Button Press
                            Ps  = 1003 -> Don't Send Mouse Row & Column on
                          Button Press
      ESC [ ? Ps r        Restore DEC Private Mode
                            Ps  = 1 -> Normal/Application Cursor Keys
                          (DECCKM)
                            Ps  = 3 -> 80/132 Column Mode (DECCOLM)
                            Ps  = 4 -> Jump (Fast)/Smooth (Slow) Scroll
                          (DECSCLM)
                            Ps  = 5 -> Normal/Reverse Video (DECSCNM)
                            Ps  = 6 -> Normal/Origin Cursor Mode (DECOM)
                            Ps  = 7 -> No Wraparound/Wraparound Mode
                          (DECAWM)
                            Ps  = 8 -> Auto-repeat/No Auto-repeat Keys
                          (DECARM)
                            Ps  = 9 -> Don't Send/Send MIT Mouse Row &
                          Column on Button Press
                            Ps  = 40 -> Disallow/Allow 80 -> 132 Mode
                            Ps  = 41 -> Off/On curses(5) fix
                            Ps  = 44 -> Turn Off/On Margin Bell
                            Ps  = 45 -> No Reverse-wraparound/Reverse-
                          wraparound Mode
                            Ps  = 46 -> Stop/Start Logging
                            Ps  = 47 -> Use Normal/Alternate Screen Buffer
                            Ps  = 1000 -> Don't Send/Send VT220 Mouse Row &
                          Column on Button Press
                            Ps  = 1003 -> Don't Send/Send VT220 Hilite Mouse
                          Row & Column on Button Press
      ESC [ ? Ps s        Save DEC Private Mode
                            Ps  = 1 -> Normal/Application Cursor Keys
                          (DECCKM)
                            Ps  = 3 -> 80/132 Column Mode (DECCOLM)
                            Ps  = 4 -> Jump (Fast)/Smooth (Slow) Scroll
                          (DECSCLM)
                            Ps  = 5 -> Normal/Reverse Video (DECSCNM)
                            Ps  = 6 -> Normal/Origin Cursor Mode (DECOM)
                            Ps  = 7 -> No Wraparound/Wraparound Mode
                          (DECAWM)
                            Ps  = 8 -> Auto-repeat/No Auto-repeat Keys
                          (DECARM)
                            Ps  = 9 -> Don't Send/Send MIT Mouse Row &
                          Column on Button Press
                            Ps  = 40 -> Disallow/Allow 80 -> 132 Mode
                            Ps  = 41 -> Off/On curses(5) fix
                            Ps  = 44 -> Turn Off/On Margin Bell
                            Ps  = 45 -> No Reverse-wraparound/Reverse-
                          wraparound Mode
                            Ps  = 46 -> Stop/Start Logging
                            Ps  = 47 -> Use Normal/Alternate Screen Buffer
                            Ps  = 1000 -> Don't Send/Send VT220 Mouse Row &
                          Column on Button Press


 Hewlett-Packard Company            - 4 -                   X Window System





 XTERM(control sequences)       X Version 11        XTERM(control sequences)

                                  Release 4



                            Ps  = 1003 -> Don't Send/Send VT220 Hilite Mouse
                          Row & Column on Button Press
      ESC ] Ps ; Pt BEL   Set Text Parameters
                            Ps  = 0 -> Change Icon Name and Window Title to
                          Pt
                            Ps  = 1 -> Change Icon Name to Pt
                            Ps  = 2 -> Change Window Title to Pt
                            Ps  = 46 -> Change Log File to Pt
      ESC c               Full Reset (RIS)
      ESC n               Locking Shift Select of G2 Character Set (LS2)
      ESC o               Locking Shift Select of G3 Character Set (LS3)
 Tektronix 4015 Mode
      Most of these sequences are standard Tektronix 4015 control sequences.
      The major features missing are the alternate (APL) character set and
      the write-thru and defocused modes.

      BEL                 Bell (Ctrl-G)
      BS                  Backspace (Ctrl-H)
      TAB                 Horizontal Tab (Ctrl-I)
      LF                  Line Feed or New Line (Ctrl-J)
      VT                  Vertical Tab (Ctrl-K)
      FF                  Form Feed or New Page (Ctrl-L)
      CR                  Carriage Return (Ctrl-M)
      ESC ETX             Switch to VT102 Mode
      ESC ENQ             Return Terminal Status
      ESC LF              PAGE (Clear Screen)
      ESC ETB             COPY (Save Tektronix Codes to File)
      ESC CAN             Bypass Condition
      ESC SUB             GIN mode
      ESC FS              Special Point Plot Mode
      ESC GS              Graph Mode (same as GS)
      ESC RS              Incremental Plot Mode (same as RS)
      ESC US              Alpha Mode (same as US)
      ESC 8               Select Large Character Set
      ESC 9               Select #2 Character Set
      ESC :               Select #3 Character Set
      ESC ;               Select Small Character Set
      ESC ] Ps ; Pt BEL   Set Text Parameters
                            Ps  = 0 -> Change Icon Name and Window Title to
                          Pt
                            Ps  = 1 -> Change Icon Name to Pt
                            Ps  = 2 -> Change Window Title to Pt
                            Ps  = 46 -> Change Log File to Pt
      ESC `               Normal Z Axis and Normal (solid) Vectors
      ESC a               Normal Z Axis and Dotted Line Vectors
      ESC b               Normal Z Axis and Dot-Dashed Vectors
      ESC c               Normal Z Axis and Short-Dashed Vectors
      ESC d               Normal Z Axis and Long-Dashed Vectors
      ESC h               Defocused Z Axis and Normal (solid) Vectors
      ESC i               Defocused Z Axis and Dotted Line Vectors



 Hewlett-Packard Company            - 5 -                   X Window System





 XTERM(control sequences)       X Version 11        XTERM(control sequences)

                                  Release 4



      ESC j               Defocused Z Axis and Dot-Dashed Vectors
      ESC k               Defocused Z Axis and Short-Dashed Vectors
      ESC l               Defocused Z Axis and Long-Dashed Vectors
      ESC p               Write-Thru Mode and Normal (solid) Vectors
      ESC q               Write-Thru Mode and Dotted Line Vectors
      ESC r               Write-Thru Mode and Dot-Dashed Vectors
      ESC s               Write-Thru Mode and Short-Dashed Vectors
      ESC t               Write-Thru Mode and Long-Dashed Vectors
      FS                  Point Plot Mode
      GS                  Graph Mode
      RS                  Incremental Plot Mode
      US                  Alpha Mode









































 Hewlett-Packard Company            - 6 -                   X Window System



Typewritten Software • bear@typewritten.org • Edmonds, WA 98026