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
7 xterm-basic|xterm terminal base (X Window System),
8 am, km, mir, msgr, xenl,
9 lines#65, cols#80, it#8,
11 # Not sure about this flag: Erase overstrike with a blank.
17 # Clear screen, EOL, EOS, BOL
18 clear=\E[H\E[2J, el=\E[K, ed=\E[J, el1=\E[1K$<3>,
20 # Change scroll region
21 csr=\E[%i%p1%d;%p2%dr,
25 # Enter insert mode, leave insert mode
26 smir=\E[4h, rmir=\E[4l,
28 # Positions Horizontal and vertical. Taken from linux console source
29 hpa=\E[%i%p1%dG, vpa=\E[%i%p1%dd,
34 # Set tab stops, clear tab stops, tab character
35 # FIXME: does xterm use \E[3k instead of \E[3g (like vt102)?
36 hts=\EH, tbc=\E[3g, ht=\t,
38 # Make cursor invisible, normal
39 civis=\E[?25l, cnorm=\E[?25h,
41 # Save cursor position, restore cursor position
45 # Code for line drawing, enter alternate char set and leave char set
46 acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
47 smacs=\E(B\E)U^N,rmacs=\E(B\E)0^O,
50 # Enter/leave keypad transmit.
54 # Delete: chars, lines, 1char, 1line
55 dch=\E[%p1%dP, dl=\E[%p1%dM,
58 # Insert: chars, line, 1 char,
59 ich=\E[%p1%d@, il=\E[%p1%dL,
62 # Fonts: bold, reverse, blink, underline (enter/leave),
63 # standout (enter/leave), Define attribs 1-9
64 bold=\E[1m, rev=\E[7m,
65 rmul=\E[24m, smul=\E[4m, rmso=\E[m, smso=\E[7m,
67 # Cursor keys, sent by terminal
68 kcuf1=\EOC, kcuu1=\EOA, kcud1=\EOB, kcub1=\EOD,
70 # Move cursor: 1 char, any
71 cuf1=\E[C, cuu1=\E[A, cud1=\n, cub1=\b,
72 cuf=\E[%p1%dC, cuu=\E[%p1%dA, cud=\E[%p1%dB, cub=\E[%p1%dD,
74 # Move cursor to arbitrary position
75 cup=\E[%i%p1%d;%p2%dH,
81 ka1=\EOq, ka3=\EOs, kb2=\EOr,
86 kf0=\E[21~, kf1=\E[11~, kf2=\E[12~,
87 kf3=\E[13~, kf4=\E[14~, kf5=\E[15~, kf6=\E[17~,
88 kf7=\E[18~, kf8=\E[19~, kf9=\E[20~, kf10=\E[21~,
89 kf11=\E[23~, kf12=\E[24~, kf13=\E[25~, kf14=\E[26~,
90 kf15=\E[28~, kf16=\E[29~, kf17=\E[31~, kf18=\E[32~,
91 kf19=\E[33~, kf20=\E[34~,
93 # Insert, home, end, delete, next page, previous page, backspace, enter
94 kich1=\E[2~, khome=\E[7~, kend=\E[8~,
95 kdch1=\E[3~, knp=\E[6~, kpp=\E[5~,
98 # Reset terminal, turn off all attributes
99 rs1=\E>\E[1;3;4;5;6l\E[?7h\E[m\E[r\E[2J\E[H,
100 rs2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l\E<,
103 is2=\E[r\E[m\E[2J\E[H\E[?7h\E[?1;3;4;6l\E[4l,
105 # Leave/Enter CA-Mode.
110 # Xterm with color support.
112 xterm|vs100|xterm terminal emulator (X Window System),
114 sgr=\E[0%?%p1%p6%|%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t^N%e^O%;,
117 xterm-color|color-xterm|color xterm terminal emulator (X Window System),
121 # Set all color pairs to the original ones
125 # Set foreground color, background color
126 setf=\E[%p1%{30}%+%dm, setb=\E[%p1%{40}%+%dm,