home *** CD-ROM | disk | FTP | other *** search
/ Chip 1998 January / CHIPCD1_98.iso / software / pelne / monkey / mlinux06.a02 / USR / LIB / MC / TERM / XTERM.TI < prev   
Text File  |  1996-05-24  |  3KB  |  127 lines

  1. #
  2. # Enhanced xterm terminfo entry
  3. # To get correct behaviour under xterm (not rxvt), use enclosed
  4. # xterm.ad and add it into X resource database.
  5. # Install xterm.ti by typing tic xterm.ti
  6. xterm-basic|xterm terminal base (X Window System),
  7.     am, km, mir, msgr, xenl,
  8.     lines#65, cols#80, it#8,
  9.  
  10. # Not sure about this flag: Erase overstrike with a blank.
  11.     eo,
  12.  
  13.     bel=^G, cr=\r,
  14.         ind=^J, il1=\E[L,
  15.  
  16. # Clear screen, EOL, EOS, BOL
  17.     clear=\E[H\E[2J, el=\E[K, ed=\E[J, el1=\E[1K$<3>,
  18.  
  19. # Change scroll region
  20.     csr=\E[%i%p1%d;%p2%dr,
  21.  
  22. # Cursor motion
  23.  
  24. # Enter insert mode, leave insert mode
  25.     smir=\E[4h, rmir=\E[4l,
  26.  
  27. # Positions Horizontal and vertical.  Taken from linux console source
  28.          hpa=\E%i%p1%dG, vpa=\E%i%p1%dd,
  29.  
  30. # Scroll text down 
  31.     ri=\EM,
  32.  
  33. # Set tab stops, clear tab stops, tab character
  34. # FIXME: does xterm use \E[3k instead of \E[3g (like vt102)?
  35.     hts=\EH, tbc=\E[3g, ht=\t,
  36.  
  37. # Make cursor invisible, normal
  38.     civis=\E[?25l, cnorm=\E[?25h,
  39.  
  40. # Save cursor position, restore cursor position
  41.  
  42.     sc=\E7, rc=\E8,
  43.  
  44. # Code for line drawing, enter alternate char set and leave char set
  45.     acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
  46.     smacs=\E(B\E)U^N,rmacs=\E(B\E)0^O,
  47.     enacs=\E(B\E)0,
  48.  
  49. # Enter/leave keypad transmit.
  50.     rmkx=\E[?1l\E>,
  51.     smkx=\E[?1h\E=,
  52.  
  53. # Delete: chars, lines, 1char, 1line
  54.     dch=\E[%p1%dP, dl=\E[%p1%dM,
  55.     dch1=\E[P, dl1=\E[M,
  56.  
  57. # Insert: chars, line, 1 char,
  58.     ich=\E[%p1%d@, il=\E[%p1%dL,
  59.     ich1=\E[@, il1=\E[L,
  60.  
  61. # Fonts: bold, reverse, blink, underline (enter/leave), 
  62. # standout (enter/leave), Define attribs 1-9
  63.     bold=\E[1m, rev=\E[7m, 
  64.     rmul=\E[24m, smul=\E[4m, rmso=\E[m, smso=\E[7m,
  65.  
  66. # Cursor keys, sent by terminal
  67.     kcuf1=\EOC,    kcuu1=\EOA,    kcud1=\EOB,    kcub1=\EOD,
  68.  
  69. # Move cursor: 1 char, any
  70.     cuf1=\E[C,     cuu1=\E[A,     cud1=\n,       cub1=\b,
  71.     cuf=\E[%p1%dC, cuu=\E[%p1%dA, cud=\E[%p1%dB, cub=\E[%p1%dD,
  72.  
  73. # Move cursor to arbitrary position
  74.     cup=\E[%i%p1%d;%p2%dH,
  75.  
  76. # Misc cursor motion
  77.     home=\E[H, 
  78.  
  79. # Other nice keys.
  80.     ka1=\EOq, ka3=\EOs, kb2=\EOr,
  81.     kc1=\EOp, kc3=\EOn, 
  82.  
  83. # The Function keys.
  84.  
  85.     kf0=\E[21~, kf1=\E[11~, kf2=\E[12~,
  86.     kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
  87.     kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kf10=\E[21~,
  88.     kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
  89.     kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
  90.     kf19=\E[33~, kf20=\E[34~,
  91.  
  92. # Insert, home, end, delete, next page, previous page, backspace, enter
  93.     kich1=\E[2~, khome=\E[7~, kend=\E[8~,
  94.     kdch1=\E[3~, knp=\E[6~, kpp=\E[5~,
  95.     kbs=\b, kent=\EOM, 
  96.  
  97. # Reset terminal, turn off all attributes
  98.     rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
  99.     rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
  100.  
  101. # Init terminal
  102.     is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
  103.  
  104. # Leave/Enter CA-Mode.
  105.     rmcup=\E[?47l\E8,
  106.     smcup=\E7\E[?47h,
  107.  
  108. # Xterm with color support.
  109. #
  110. xterm|vs100|xterm terminal emulator (X Window System),
  111.     use=xterm-basic,    
  112.     sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
  113.     sgr0=\E[m^O,
  114.  
  115. xterm-color|color-xterm|color xterm terminal emulator (X Window System),
  116.     use=xterm-basic,
  117.     colors#8, pairs#64,
  118.  
  119. # Set all color pairs to the original ones
  120. #    op=\E[37m\E[40m,
  121.     op=\E[m,
  122.  
  123. # Set foreground color, background color
  124.     setf=\E[%p1%{30}%+%dm, setb=\E[%p1%{40}%+%dm,
  125.