home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / UTILITY / ED.ZIP / ED.H < prev    next >
Text File  |  1987-12-08  |  3KB  |  76 lines

  1. #define ANSI_SC 1
  2. #define ANSI_RC 2
  3. #define ANSI_KU 3
  4. #define ANSI_KD 4
  5. #define ANSI_KR 5
  6. #define ANSI_KL 6
  7. #define ANSI_CL 7
  8. #define ANSI_CM 8
  9. #define ANSI_CE 9
  10. #define ANSI_CS 10
  11. #define ANSI_SR 11
  12. #define ANSI_SF 12
  13. #define ANSI_MR 13
  14. #define ANSI_MB 14
  15. #define ANSI_MD 15
  16. #define ANSI_ME 16
  17.  
  18. /*
  19. d0|vt100|vt100-am|vt100am|dec vt100:\
  20.         :do=^J:co#80:li#24:cl=50\E[;H\E[2J:sf=2*\ED:\
  21.         :le=^H:bs:am:cm=5\E[%i%d;%dH:nd=2\E[C:up=2\E[A:\
  22.         :ce=3\E[K:cd=50\E[J:so=2\E[7m:se=2\E[m:us=2\E[4m:ue=2\E[m:\
  23.         :md=2\E[1m:mr=2\E[7m:mb=2\E[5m:me=2\E[m:is=\E[1;24r\E[24;1H:\
  24.         :rf=/usr/lib/tabset/vt100:\
  25.         :rs=\E>\E[?3l\E[?4l\E[?5l\E[?7h\E[?8h:ks=\E[?1h\E=:ke=\E[?1l\E>:\
  26.         :ku=\EOA:kd=\EOB:kr=\EOC:kl=\EOD:kb=^H:\
  27.         :ho=\E[H:k1=\EOP:k2=\EOQ:k3=\EOR:k4=\EOS:pt:sr=2*\EM:vt#3:xn:\
  28.         :sc=\E7:rc=\E8:cs=\E[%i%d;%dr:
  29.  
  30.      N   indicates numeric parameter(s)
  31.      P   indicates that padding may be specified
  32.      *   indicates that padding may be based on the number of lines affected
  33.      o   indicates capability is obsolete
  34.  
  35.      Name  Type  Notes  Description
  36.      am    bool         Terminal has automatic margins
  37.      bs    bool  (o)    Terminal can backspace with ^H
  38.      cd    str   (P*)   Clear to end of display
  39.      ce    str   (P)    Clear to end of line
  40.      cl    str   (P*)   Clear screen and home cursor
  41.      cm    str   (NP)   Screen-relative cursor motion
  42.      co    num          Number of columns in a line (See BUGS section below)
  43.      cs    str   (NP)   Change scrolling region (VT100)
  44.      do    str          Down one line
  45.      ho    str   (P)    Home cursor
  46.      is    str          Terminal initialization string (termcap only)
  47.      k0-k9 str          Sent by function keys 0-9
  48.      kb    str          Sent by backspace key
  49.      kd    str          Sent by down-arrow key
  50.      ke    str          Out of "keypad transmit" mode
  51.      kl    str          Sent by left-arrow key
  52.      kr    str          Sent by right-arrow key
  53.      ks    str          Put terminal in "keypad transmit" mode
  54.      ku    str          Sent by up-arrow key
  55.      le    str   (P)    Move cursor left one position
  56.      li    num          Number of lines on screen or page (See BUGS section below)
  57.      mb    str          Turn on blinking attribute
  58.      md    str          Turn on bold (extra bright) attribute
  59.      me    str          Turn off all attributes
  60.      mr    str          Turn on reverse-video attibute
  61.      nd    str          Non-destructive space (cursor right)
  62.      pt    bool  (o)    Has hardware tabs (may need to be set with is)
  63.      rc    str   (P)    Restore cursor to position of last sc
  64.      rf    str          Name of file containing reset codes
  65.      rs    str          Reset terminal completely to sane modes (termcap only)
  66.      sc    str   (P)    Save cursor position
  67.      se    str          End standout mode
  68.      sf    str   (P)    Scroll text up
  69.      so    str          Begin standout mode
  70.      sr    str   (P)    Scroll text down
  71.      ue    str          End underscore mode
  72.      up    str          Upline (cursor up)
  73.      us    str          Start underscore mode
  74.      vt    num          Virtual terminal number (not supported on all systems)
  75.      xn    bool         Newline ignored after 80 cols (Concept)
  76. */