home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / windows / x / 21044 < prev    next >
Encoding:
Text File  |  1993-01-12  |  8.1 KB  |  224 lines

  1. Newsgroups: comp.windows.x
  2. Path: sparky!uunet!enterpoop.mit.edu!bloom-beacon!INTERNET!dont-send-mail-to-path-lines
  3. From: mahan@TGV.COM (Patrick L. Mahan)
  4. Subject: RE: need xterm window resize program
  5. Message-ID: <930112001553.20400246@code-z.tgv.com>
  6. Sender: root@athena.mit.edu (Wizard A. Root)
  7. Organization: The Internet
  8. Date: Tue, 12 Jan 1993 08:15:53 GMT
  9. Lines: 213
  10.  
  11. #
  12. #I'm looking for a program with source code that when invoke under an xterm
  13. #window will resize the xterm window as specified with options.  The program may 
  14. #be a simple shell script using an escape control sequence.
  15. #
  16. #I'm also looking for a full list of escape control sequence for xterm window.
  17. #
  18.  
  19. Here are the escape sequences recongized by xterm.
  20.  
  21. ------------------------------------------------------------------------------
  22. BEL        Bell (Ctrl-G)
  23. BS        Backspace (Ctrl-H)
  24. HT        Horizontal Tab (Ctrl-I)
  25. NL        Line Feed or New Line (Ctrl-J)
  26. VT        Vertical Tab (Ctrl-K)
  27. NP        Form Feed or New Page (Ctrl-L)
  28. CR        Carriage Return (Ctrl-M)
  29. SO        Shift Out (Ctrl-N) -> Switch to Alternate Character Set
  30. SI        Shift In (Ctrl-O) -> Switch to Standard Character Set
  31. ESC BEL        (Same as non-escaped BEL)
  32. ESC BS        (Same as non-escaped BS)
  33. ESC HT        (Same as non-escaped HT)
  34. ESC NL        (Same as non-escaped NL)
  35. ESC VT        (Same as non-escaped VT)
  36. ESC NP        (Same as non-escaped NP)
  37. ESC CR        (Same as non-escaped CR)
  38. ESC SO        (Same as non-escaped SO)
  39. ESC SI        (Same as non-escaped SI)
  40. ESC # BEL    (Same as non-escaped BEL)
  41. ESC # BS    (Same as non-escaped BS)
  42. ESC # HT    (Same as non-escaped HT)
  43. ESC # NL    (Same as non-escaped NL)
  44. ESC # VT    (Same as non-escaped VT)
  45. ESC # NP    (Same as non-escaped NP)
  46. ESC # CR    (Same as non-escaped CR)
  47. ESC # SO    (Same as non-escaped SO)
  48. ESC # SI    (Same as non-escaped SI)
  49. ESC # 8        DEC Screen Alignment Test (DECALN)
  50. ESC ( BEL    (Same as non-escaped BEL)
  51. ESC ( BS    (Same as non-escaped BS)
  52. ESC ( HT    (Same as non-escaped HT)
  53. ESC ( NL    (Same as non-escaped NL)
  54. ESC ( VT    (Same as non-escaped VT)
  55. ESC ( NP    (Same as non-escaped NP)
  56. ESC ( CR    (Same as non-escaped CR)
  57. ESC ( SO    (Same as non-escaped SO)
  58. ESC ( SI    (Same as non-escaped SI)
  59. ESC ( C        Select G0 Character Set (SCS)
  60.         C = 0 -> Special Character and Line Drawing Set
  61.         C = 1 -> Alternate Character ROM Standard Set
  62.         C = 2 -> Alternate Character ROM Special Set
  63.         C = A -> United Kingdom (UK)
  64.         C = B -> United States (USASCII)
  65. ESC ) C        Select G1 Character Set (SCS)
  66.         C takes same values as above
  67. ESC * C        Select G2 Character Set (SCS)
  68.         C takes same values as above
  69. ESC + C        Select G3 Character Set (SCS)
  70.         C takes same values as above
  71. ESC 7        Save Cursor (DECSC)
  72. ESC 8        Restore Cursor (DECRC)
  73. ESC =        Application Keypad (DECPAM)
  74. ESC >        Normal Keypad (DECNM)
  75. ESC D        Index (IND)
  76. ESC E        Next Line (NEL)
  77. ESC H        Tab Set (HTS)
  78. ESC M        Reverse Index (RI)
  79. ESC N        Single Shift Select of G2 Character Set (SS2)
  80. ESC O        Single Shift Select of G3 Character Set (SS3)
  81. ESC [ BEL    (Same as non-escaped BEL)
  82. ESC [ BS    (Same as non-escaped BS)
  83. ESC [ HT    (Same as non-escaped HT)
  84. ESC [ NL    (Same as non-escaped NL)
  85. ESC [ VT    (Same as non-escaped VT)
  86. ESC [ NP    (Same as non-escaped NP)
  87. ESC [ CR    (Same as non-escaped CR)
  88. ESC [ SO    (Same as non-escaped SO)
  89. ESC [ SI    (Same as non-escaped SI)
  90. ESC [ ? BEL    (Same as non-escaped BEL)
  91. ESC [ ? BS    (Same as non-escaped BS)
  92. ESC [ ? HT    (Same as non-escaped HT)
  93. ESC [ ? NL    (Same as non-escaped NL)
  94. ESC [ ? VT    (Same as non-escaped VT)
  95. ESC [ ? NP    (Same as non-escaped NP)
  96. ESC [ ? CR    (Same as non-escaped CR)
  97. ESC [ ? SO    (Same as non-escaped SO)
  98. ESC [ ? SI    (Same as non-escaped SI)
  99. ESC [ ? Ps h    DEC Private Mode Set (DECSET)
  100.         Ps = 1 -> Application Cursor Keys (DECCKM)
  101.         Ps = 2 -> Set VT52 Mode
  102.         Ps = 3 -> 132 Column Mode (DECCOLM)
  103.         Ps = 4 -> Smooth (Slow) Scroll (DECSCLM)
  104.         Ps = 5 -> Reverse Video (DECSCNM)
  105.         Ps = 6 -> Origin Mode (DECOM)
  106.         Ps = 7 -> Wraparound Mode (DECAWM)
  107.         Ps = 8 -> Auto-Repeat Keys (DECARM)
  108.         Ps = 9 -> Send MIT Mouse Row & Column on Button
  109.               Press
  110.         Ps = 38 -> Enter Tektronix Mode (DECTEK)
  111.         Ps = 40 -> Allow 80 <-> 132 Mode
  112.         Ps = 41 -> curses(5) fix
  113.         Ps = 44 -> Turn on Margin Bell
  114.         Ps = 45 -> Reverse-wraparound Mode
  115.         Ps = 46 -> Start Logging
  116.         Ps = 47 -> Use Alternate Screen Buffer
  117.         Ps = 1000 -> xtem bogus sequence (???)
  118.         Ps = 1001 -> xtem sequence w/hilite tracking (???)
  119. ESC [ ? Ps l    DEC Private Mode Reset (DECRST)
  120.         Ps = 1 -> Normal Cursor Keys (DECCKM)
  121.         Ps = 3 -> 80 Column Mode (DECCOLM)
  122.         Ps = 4 -> Jump (Fast) Scroll (DECSCLM)
  123.         Ps = 5 -> Normal Video (DECSCNM)
  124.         Ps = 6 -> Normal Cursor Mode (DECOM)
  125.         Ps = 7 -> No Wraparound Mode (DECAWM)
  126.         Ps = 8 -> No Auto-Repeat Keys (DECARM)
  127.         Ps = 9 -> Don't Send MIT Mouse Row & Column on
  128.               Button Press
  129.         Ps = 40 -> Don't Allow 80 <-> 132 Mode
  130.         Ps = 41 -> No curses(5) fix
  131.         Ps = 44 -> Turn Off Margin Bell
  132.         Ps = 45 -> No Reverse-wraparound Mode
  133.         Ps = 46 -> Stop Logging
  134.         Ps = 47 -> Use Normal Screen Buffer
  135.         Ps = 1000 -> xtem bogus sequence (???)
  136.         Ps = 1001 -> xtem sequence w/hilite tracking (???)
  137. ESC [ ? Ps r    Restore DEC Private Mode
  138.         Ps = 1 -> Normal/Application Cursor Keys (DECCKM)
  139.         Ps = 3 -> 80/132 Column Mode (DECCOLM)
  140.         Ps = 4 -> Jump (Fast)/Smooth (Slow) Scroll (DECSCLM)
  141.         Ps = 5 -> Normal/Reverse Video (DECSCNM)
  142.         Ps = 6 -> Normal/Origin  Cursor Mode (DECOM)
  143.         Ps = 7 -> No Wraparound/Wraparound Mode (DECAWM)
  144.         Ps = 8 -> Auto-repeat/No Auto-repeat Keys (DECARM)
  145.         Ps = 9 -> Don't Send/Send MIT Mouse Row & Column on
  146.               Button Press
  147.         Ps = 40 -> Disallow/Allow 80 <-> 132 Mode
  148.         Ps = 41 -> Off/On curses(5) fix
  149.         Ps = 44 -> Turn Off/On Margin Bell
  150.         Ps = 45 -> No Reverse-wraparound/Reverse-wraparound
  151.                Mode 
  152.         Ps = 46 -> Stop/Start Logging
  153.         Ps = 47 -> Use Normal/Alternate Screen Buffer
  154.         Ps = 1000 -> mouse bogus sequence (???)
  155.         Ps = 1001 -> mouse bogus sequence (???)
  156. ESC [ ? Ps s    Save DEC Private Mode
  157.             Same P's as Restore DEC Private Mode
  158. ESC [ Ps @    Insert Ps (Blank) Character(s) (default = 1) (ICH)
  159. ESC [ Ps A    Cursor Up Ps Times (default = 1) (CUU)
  160. ESC [ Ps B    Cursor Down Ps Times (default = 1) (CUD)
  161. ESC [ Ps C    Cursor Forward Ps Times (default = 1) (CUF)
  162. ESC [ Ps D    Cursor Backward Ps Times (default = 1) (CUB)
  163. ESC [ Ps ; Ps H    Cursor Position [row;column] (default = [1,1]) (CUP)
  164. ESC [ Ps J    Erase in Display
  165.         Ps = 0 -> Clear Below (default)
  166.         Ps = 1 -> Clear Above
  167.         Ps = 2 -> Clear All
  168. ESC [ Ps K    Erase in Line
  169.         Ps = 0 -> Clear to Right (default)
  170.         Ps = 1 -> Clear to Left
  171.         Ps = 2 -> Clear All
  172. ESC [ Ps L    Insert Ps lines (default = 1) (IL)
  173. ESC [ Ps M    Delete Ps lines (default = 1) (DL)
  174. ESC [ Ps P    Delete Ps Characters (default = 1) (DCH)
  175. ESC [ T        Track Mouse (???)
  176. ESC [ Ps c    Device Attributes (DA1)
  177. ESC [ Ps ; Ps f    Cursor Position [row;column] (default = [1,1]) (HVP)
  178. ESC [ Ps g    Tab Clear
  179.         Ps = 0 -> Clear Current Column (default)
  180.         Ps = 3 -> Clear All
  181. ESC [ Ps h    Mode Set (SET)
  182.         Ps = 4 -> Insert Mode (IRM)
  183.         Ps = 20 -> Automatic Linefeed (LNM)
  184. ESC [ Ps l    Mode Reset (RST)
  185.         Ps = 4 -> Insert Mode (IRM)
  186.         Ps = 20 -> Automatic Linefeed (LNM)
  187. ESC [ Pm m    Character Attributes (SGR)
  188.         Ps = 0 -> Normal (default)
  189.         Ps = 1 -> Blink (appears as Bold)
  190.         Ps = 4 -> Underscore
  191.         Ps = 5 -> Bold
  192.         Ps = 7 -> Inverse
  193. ESC [ Ps n    Device Status Report (DSR)
  194.         Ps = 5 -> Status Report ESC [ 0 n -> OK
  195.         Ps = 6 -> Report Cursor Position (CPR) [row;column]
  196.               as ESC [ r ; c R
  197. ESC [ Ps ; Ps r    Set Scrolling Region [top;bottom] (default = full size
  198.         of window) (DECSTBM)
  199. ESC [ Ps x    Request Terminal Parameters (DECREQTPARM)
  200. ESC ] Ps ND string NP        OSC Mode
  201.         ND can be any non-digit Character (it's discarded)
  202.         NP can be any non-printing Character (it's discarded)
  203.         string can be any ASCII printable string
  204.             (max 511 characters)
  205.         Ps = 0 -> use string as a new icon name and title
  206.         Ps = 1 -> use string is a new icon name only
  207.         Ps = 2 -> use string is a new title only
  208.         Ps = 46 -> use string as a new log file name
  209.         
  210. ESC c        Full Reset
  211. ESC n        Switch to Alternate Character Set LS2
  212. ESC o        Switch to Alternate Character Set LS3
  213. ESC |        Switch to Alternate Graphics(?) Set LS3R
  214. ESC }        Switch to Alternate Graphics(?) Set LS2R
  215. ESC ~        Switch to Alternate Graphics(?) Set LS1R
  216.  
  217. Patrick L. Mahan
  218.  
  219. --- TGV Window Washer ------------------------------- Mahan@TGV.COM ---------
  220.  
  221. Waking a person unnecessarily should not be considered  - Lazarus Long
  222. a capital crime.  For a first offense, that is            From the Notebooks of
  223.                               Lazarus Long
  224.