home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 1996 May / PCW596.iso / wtest / clico / sunsoft / pcnfs51 / pcnfs51.lzh / TELNETW.ZOO / symbol22.ecf < prev    next >
Text File  |  1994-08-27  |  4KB  |  122 lines

  1. !------------------------------------------------------------------------------
  2. !            TELNETW PROGRAMING SYMBOLS & SYMLEXES
  3. !------------------------------------------------------------------------------
  4.  
  5. !    Select graphic rendition (SGR)
  6.  
  7. d$attoff    == "<esc>[0m"        !Turn attributes off
  8. d$bdon        == "<esc>[1m"        !Turn bold on
  9. d$ulon        == "<esc>[4m"        !Turn underline on
  10. d$bkon        == "<esc>[5m"        !Turn blink on
  11. d$rvon        == "<esc>[7m"        !Reverse video on
  12.  
  13. d$bdoff        == "<esc>[22m"        !Turn bold off
  14. d$uloff        == "<esc>[24m"        !Turn underline off
  15. d$bkoff        == "<esc>[25m"        !Turn blink off
  16. d$rvoff        == "<esc>[27m"        !Reverse video off
  17.  
  18. d$buon        == "<esc>[1;4m"        !Turn bold & underline on
  19. d$bron        == "<esc>[1;7m"        !Turn bold & reverse on
  20. d$uron        == "<esc>[4;7m"        !Turn underline & reverse on
  21. d$buron        == "<esc>[1;4;7m"    !Turn bold, underline & reverse on
  22.  
  23. !    Select erasable character attributes (DECSCA)
  24.  
  25. d$escaoff    == "<esc>[0""q"        !Set all characters erasable
  26. d$escon        == "<esc>[1""q"        !Set character(s) not erasable
  27. d$escoff    == "<esc>[2""q"        !Set character(s) erasable
  28.  
  29. !    Erase characters (Nonselective)
  30.  
  31. d$ech        == "<esc>[$1sX"        !Cursor $1s # of chars
  32. d$eeol        == "<esc>[K"        !Cursor to end of line
  33. d$ebol        == "<esc>[1K"        !Beginning of line to cursor
  34. d$el        == "<esc>[2K"        !Line
  35. d$eeod        == "<esc>[J"        !Cursor to end of display
  36. d$ebod        == "<esc>[1J"        !Beginning of display to cursor
  37. d$ed        == "<esc>[2J"        !display
  38.  
  39. !    Erase erasable characters (Selective DECSEL/DECSED)
  40.  
  41. d$seeol        == "<esc>[?K"        !Cursor to end of line
  42. d$sebol        == "<esc>[?1K"        !Beginning of line to cursor
  43. d$sel        == "<esc>[?2K"        !Line
  44. d$seeod        == "<esc>[?J"        !Cursor to end of display
  45. d$sebod        == "<esc>[?1J"        !Beginning of display to cursor
  46. d$sed        == "<esc>[?2J"        !display
  47.  
  48. !    Editing
  49.  
  50. d$il        == "<esc>[$1sL"        !Insert $1s # of lines
  51. d$dl        == "<esc>[$1sM"        !Delete $1s # of lines
  52. d$ich        == "<esc>[$1s@"        !Insert $1s # of blanks
  53. d$dch        == "<esc>[$1sP"        !Delete $1s # of blanks
  54.  
  55. !    Cursor
  56.  
  57. d$cuu        == "<esc>$1sA"        !Move cursor up $1s # of lines
  58. d$cud        == "<esc>$1sB"        !Move cursor down $1s # of lines
  59. d$cur        == "<esc>$1sC"        !Move cursor right $1s # of chars
  60. d$cul        == "<esc>$1sD"        !Move cursor left $1s # of chars
  61. d$cup        == "<esc>[$1s;$2sH"    !Set cursor position (Column, Row)
  62. d$hvp        == "<esc>[$1s;$2sf"    !Set cursor position (Column, Row)
  63. d$cd        == "<esc>D"        !Move cursor down
  64. d$cu        == "<esc>M"        !Move cursor up
  65. d$nel        == "<esc>E"        !Move cursor to beginning of next line
  66. d$sc        == "<esc>7"        !Save cursor & attributes
  67. d$rc        == "<esc>8"        !Restore cursor & attributes
  68.  
  69. !    Set tab stops
  70.  
  71. d$st        == "<esc>H"        !Set tab at cursor position
  72. d$ct        == "<esc>g"        !Clear tab at cursor position
  73. d$cta        == "<esc>3g"        !Clear all tabs
  74.  
  75. !    Scrolling margins (top and bottom)
  76.  
  77. d$stbm        == "<esc>[$1s;$2sr"    !Set top and bottom scroll region
  78.  
  79. !    Print modes
  80.  
  81. d$prtcon    == "<esc>[?5i"        !Continous print on
  82. d$prtcoff    == "<esc>[?4i"        !Continous print off
  83. d$prtscr    == "<esc>[i"        !Print screen
  84. d$prtl        == "<esc>[?li"        !Print line cursor is on
  85. d$prtcmon    == "<esc>[5i"        !Set Printer controller mode on
  86. d$prtcmoff    == "<esc>[4i"        !Set Printer controller mode off
  87.  
  88. !    Character set selection (SCS)
  89.  
  90. d$g1dsg        == "<esc>)0"        !Set DEC special graphic chars into G1
  91. d$g0dsg        == "<esc>*1"        !Set IBM special graphic chars into G2
  92. d$g0gl        == "<si>"        !Invoke G0 into GL
  93. d$g1gl        == "<so>"        !Invoke G1 into GL
  94. d$g1gr        == "<esc>~"        !Invoke G1 into GR
  95. d$g2gl        == "<esc>n"        !Invoke G2 into GL
  96. d$g2gr        == "<esc>}"        !Invoke G2 into GR
  97.  
  98. !    Ansi-compatible DEC private modes
  99.  
  100. d$c132        == "<esc>[?3h"        !Set columns to 132
  101. d$c80        == "<esc>[?3l"        !Reset columns to 80
  102. d$rvdon        == "<esc>[?5h"        !Set reverse video display on
  103. d$rvdoff    == "<esc>[?5l"        !Reset reverse video display off
  104. d$omon        == "<esc>[?6h"        !Set origin mode on (user defined)
  105. d$omoff        == "<esc>[?6l"        !Reset origin mode off (upper left)
  106. d$wrapon    == "<esc>[?7h"        !Set auto wrap on
  107. d$wrapoff    == "<esc>[?7l"        !Reset auto wrap off
  108. d$cvon        == "<esc>[?25h"        !Set cursor visible
  109. d$cvoff        == "<esc>[?25l"        !Reset cursor invisible
  110.  
  111. !    User definable keys (DECUDK)
  112.  
  113. d$udk == "<esc>P1;1|$1s/$2s<esc>\"    !Define function key $1 ("12-34") as
  114.                     !value $2 (Hex value of ascii character)
  115.                     !Ex: d$udk(34/5052494e540d)
  116.  
  117. !    Terminal reset and tests
  118.  
  119. d$str        == "<esc>[!p"        !Soft terminal reset
  120. d$ris        == "<esc>c"        !Hard terminal reset
  121. d$aln        == "<esc>#8"        !test pattern
  122.