rxvtRef-csi.yo 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  1. COMMENT(-- $Id: rxvtRef-csi.yo,v 1.3 2001/07/10 00:03:38 gcw Exp $ --)
  2. label(CSI)
  3. nsect(CSI (Code Sequence Introducer) Sequences)
  4. startdl()
  5. dl(bf(tt(ESC [ Ps @)))
  6. (Insert bf(tt(Ps)) (Blank) Character(s) [default: 1] (ICH))\
  7. P()\
  8. label(ESCOBPsA)
  9. dl(bf(tt(ESC [ Ps A)))
  10. (Cursor Up bf(tt(Ps)) Times [default: 1] (CUU))
  11. P()\
  12. dl(bf(tt(ESC [ Ps B)))
  13. (Cursor Down bf(tt(Ps)) Times [default: 1] (CUD))\
  14. label(ESCOBPsC)
  15. dl(bf(tt(ESC [ Ps C)))
  16. (Cursor Forward bf(tt(Ps)) Times [default: 1] (CUF))
  17. P()\
  18. dl(bf(tt(ESC [ Ps D)))
  19. (Cursor Backward bf(tt(Ps)) Times [default: 1] (CUB))
  20. P()\
  21. dl(bf(tt(ESC [ Ps E)))
  22. (Cursor Down bf(tt(Ps)) Times [default: 1] and to first column)
  23. P()\
  24. dl(bf(tt(ESC [ Ps F)))
  25. (Cursor Up bf(tt(Ps)) Times [default: 1] and to first column)\
  26. P()\
  27. label(ESCOBPsG)
  28. dl(bf(tt(ESC [ Ps G)))
  29. (Cursor to Column bf(tt(Ps)) (HPA))
  30. P()\
  31. dl(bf(tt(ESC [ Ps;Ps H)))
  32. (Cursor Position [row;column] [default: 1;1] (CUP))
  33. P()\
  34. dl(bf(tt(ESC [ Ps I)))
  35. (Move forward bf(tt(Ps)) tab stops [default: 1])
  36. P()\
  37. dl(bf(tt(ESC [ Ps J)))
  38. (Erase in Display (ED) nl()\
  39. starttable(2)(l l)(0)\
  40. row(cell(bf(tt(Ps = 0)))cell(Clear Below (default)))\
  41. row(cell(bf(tt(Ps = 1)))cell(Clear Above))\
  42. row(cell(bf(tt(Ps = 2)))cell(Clear All))\
  43. endtable())
  44. dl(bf(tt(ESC [ Ps K)))
  45. (Erase in Line (EL) nl()\
  46. starttable(2)(l l)(0)\
  47. row(cell(bf(tt(Ps = 0)))cell(Clear to Right (default)))\
  48. row(cell(bf(tt(Ps = 1)))cell(Clear to Left))\
  49. row(cell(bf(tt(Ps = 2)))cell(Clear All))\
  50. endtable())
  51. dl(bf(tt(ESC [ Ps L)))
  52. (Insert bf(tt(Ps)) Line(s) [default: 1] (IL))
  53. P()\
  54. dl(bf(tt(ESC [ Ps M)))
  55. (Delete bf(tt(Ps)) Line(s) [default: 1] (DL))
  56. P()\
  57. dl(bf(tt(ESC [ Ps P)))
  58. (Delete bf(tt(Ps)) Character(s) [default: 1] (DCH))
  59. P()\
  60. dl(bf(tt(ESC [ Ps;Ps;Ps;Ps;Ps T)))
  61. (Initiate link(hilite mouse tracking)(Mouse). em(unimplemented)
  62. Parameters are [func;startx;starty;firstrow;lastrow].)
  63. P()\
  64. dl(bf(tt(ESC [ Ps W)))
  65. (Tabulator functions nl()\
  66. starttable(2)(l l)(0)\
  67. row(cell(bf(tt(Ps = 0)))cell(Tab Set (HTS)))\
  68. row(cell(bf(tt(Ps = 2)))cell(Tab Clear (TBC), Clear Current \
  69. Column (default)))\
  70. row(cell(bf(tt(Ps = 5)))cell(Tab Clear (TBC), Clear All))\
  71. endtable())
  72. dl(bf(tt(ESC [ Ps X)))
  73. (Erase bf(tt(Ps)) Character(s) [default: 1] (ECH))
  74. P()\
  75. dl(bf(tt(ESC [ Ps Z)))
  76. (Move backward bf(tt(Ps)) [default: 1] tab stops)
  77. P()\
  78. dl(bf(tt(ESC [ Ps ')))
  79. (== link(tt(ESC [ Ps G))(ESCOBPsG))
  80. P()\
  81. dl(bf(tt(ESC [ Ps a)))
  82. (== link(tt(ESC [ Ps C))(ESCOBPsC))\
  83. P()\
  84. label(ESCOBPsc)
  85. dl(bf(tt(ESC [ Ps c)))
  86. (Send Device Attributes (DA)nl()\
  87. bf(tt(Ps = 0)) (or omitted) : request attributes from terminal nl()\
  88. returns: bf(tt(ESC[?1;2c)) (``I am a VT100 with Advanced Video
  89. Option''))
  90. P()\
  91. dl(bf(tt(ESC [ Ps d)))
  92. (Cursor to Line bf(tt(Ps)) (VPA))
  93. P()\
  94. dl(bf(tt(ESC [ Ps e)))
  95. (== link(ESC [ Ps A)(ESCOBPsA))
  96. P()\
  97. dl(bf(tt(ESC [ Ps;Ps f)))
  98. (Horizontal and Vertical Position [row;column] (HVP) [default: 1;1])
  99. P()\
  100. dl(bf(tt(ESC [ Ps g)))
  101. (Tab Clear (TBC) nl()\
  102. starttable(2)(l l)(0)\
  103. row(cell(bf(tt(Ps = 0)))cell(Clear Current Column (default)))\
  104. row(cell(bf(tt(Ps = 3)))cell(Clear All (TBC)))\
  105. endtable())
  106. dl(bf(tt(ESC [ Ps i)))
  107. (Printing nl()\
  108. starttable(2)(l l)(0)\
  109. row(cell(bf(tt(Ps = 4)))cell(disable transparent print mode (MC4)))\
  110. row(cell(bf(tt(Ps = 5)))cell(enable transparent print mode (MC5) \
  111. em(unimplemented)))\
  112. endtable())
  113. dl(bf(tt(ESC [ Pm h)nl()tt(ESC [ Pm l)))
  114. (Set Mode (SM) nl()Reset Mode (RM)\
  115. startdl()
  116. dl(bf(tt(Ps = 4)))
  117. (starttable(2)(l l)(0)\
  118. row(cell(bf(tt(h)))cell(Insert Mode (SMIR)))\
  119. row(cell(bf(tt(l)))cell(Replace Mode (RMIR)))\
  120. endtable())
  121. dl(bf(tt(Ps = 20)) em(unimplemented))
  122. (starttable(2)(l l)(0)\
  123. row(cell(bf(tt(h)))cell(Automatic Newline (LNM)))\
  124. row(cell(bf(tt(h)))cell(Normal Linefeed (LNM)))\
  125. endtable())
  126. enddl())
  127. dl(bf(tt(ESC [ Pm m)))
  128. (Character Attributes (SGR) nl()\
  129. starttable(2)(l l)(0)\
  130. row(cell(bf(tt(Ps = 0)))cell(Normal (default)))\
  131. row(cell(bf(tt(Ps = 1 / 22)))cell(On / Off Bold (bright fg)))\
  132. row(cell(bf(tt(Ps = 4 / 24)))cell(On / Off Underline))\
  133. row(cell(bf(tt(Ps = 5 / 25)))cell(On / Off Blink (bright bg)))\
  134. row(cell(bf(tt(Ps = 7 / 27)))cell(On / Off Inverse))\
  135. row(cell(bf(tt(Ps = 30 / 40)))cell(fg/bg Black))\
  136. row(cell(bf(tt(Ps = 31 / 41)))cell(fg/bg Red))\
  137. row(cell(bf(tt(Ps = 32 / 42)))cell(fg/bg Green))\
  138. row(cell(bf(tt(Ps = 33 / 43)))cell(fg/bg Yellow))\
  139. row(cell(bf(tt(Ps = 34 / 44)))cell(fg/bg Blue))\
  140. row(cell(bf(tt(Ps = 35 / 45)))cell(fg/bg Magenta))\
  141. row(cell(bf(tt(Ps = 36 / 46)))cell(fg/bg Cyan))\
  142. row(cell(bf(tt(Ps = 37 / 47)))cell(fg/bg White))\
  143. row(cell(bf(tt(Ps = 39 / 49)))cell(fg/bg Default))\
  144. endtable())
  145. dl(bf(tt(ESC [ Ps n)))
  146. (Device Status Report (DSR) nl()\
  147. starttable(2)(l l)(0)\
  148. row(cell(bf(tt(Ps = 5)))cell(Status Report bf(tt(ESC [ 0 n)) \
  149. (``OK'')))\
  150. row(cell(bf(tt(Ps = 6)))cell(Report Cursor Position (CPR) \
  151. [row;column] as bf(tt(ESC [ r ; c R))))\
  152. row(cell(bf(tt(Ps = 7)))cell(Request Display Name))\
  153. row(cell(bf(tt(Ps = 8)))cell(Request Version Number (place in \
  154. window title)))\
  155. endtable())
  156. dl(bf(tt(ESC [ Ps;Ps r)))
  157. (Set Scrolling Region [top;bottom] nl()\
  158. [default: full size of window] (CSR))
  159. P()\
  160. dl(bf(tt(ESC [ s)))
  161. (Save Cursor (SC))
  162. P()\
  163. dl(bf(tt(ESC [ Ps x)))
  164. (Request Terminal Parameters (DECREQTPARM))
  165. P()\
  166. dl(bf(tt(ESC [ u)))
  167. (Restore Cursor)
  168. enddl()