1 #!/usr/bin/env tic -e xterm,xterm-color,xterm-simple,itermapp
3 # How should you use these?
5 # Compile this using the shebang line at the top, then copy the ~/.terminfo to
6 # every machine you want it availble on
8 # If you're running xterm, urxvt, konsole or any other compliant terminal you
9 # should set TERM=xterm and ensure that backspace/delete send ^? and ^[[3~
10 # respectively. TERM must be set in your console preferences, NOT in bashrc, etc
12 # If you're running iTerm.app then set TERM to be xterm-itermapp. Do this by
13 # going to Bookmarks-> Manage Profiles-> Terminal Profiles-> Terminal Type
15 # If you have problems only on a specific machine, older OSes in particular, try
16 # using TERM=xterm-simple on that machine.
17 # Eg, cp ~/.terminfo/x/xterm-simple ~/.terminfo/x/xterm
20 xterm-new|modern xterm terminal emulator,
48 xterm+pcfkeys|fragment for PC-style keys,
113 # This chunk is used for building the VT220/Sun/PC keyboard variants.
114 xterm-basic|modern xterm terminal emulator - common,
131 acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
138 cnorm=\E[?12l\E[?25h,
140 csr=\E[%i%p1%d;%p2%dr,
147 cup=\E[%i%p1%d;%p2%dH,
159 flash=\E[?5h$<100/>\E[?5l,
169 is2=\E[!p\E[?3;4l\E[4l\E>,
189 rs2=\E[!p\E[?3;4l\E[4l\E>,
193 setb=\E[4%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
194 setf=\E[3%?%p1%{1}%=%t4%e%p1%{3}%=%t6%e%p1%{4}%=%t1%e%p1%{6}%=%t3%e%p1%d%;m,
195 sgr=\E[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;%?%p7%t;8%;m%?%p9%t\E(0%e\E(B%;,
212 # Compatible with the R6 xterm, with the following changes:
213 # + added acsc (perhaps some versions of tic assume the standard vt100
214 # alternate character set)
215 # + added u6, u7, u8, u9 strings for Daniel Weaver's tack program.
216 # + added kmous string for ncurses.
217 # + added khome/kend strings (which conflict with kfnd/kslt, see note).
218 xterm-r6|xterm-old|xterm X11R6 version,
227 acsc=``aaffggiijjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~,
233 csr=\E[%i%p1%d;%p2%dr,
240 cup=\E[%i%p1%d;%p2%dH,
255 is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
294 rmcup=\E[2J\E[?47l\E8,
299 rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
314 xterm-color|generic "ANSI" color xterm (X Window System),
323 xterm|X11 terminal emulator,
326 # This entry is based on xterm-color which is based on xterm-r6. It has with
327 # the newer keys from xterm-new.
328 xterm-simple|iTerm.app on OSX - simple version,
332 # Entry for iTerm.app under Mac OS X. It doesn't behave quite like xterm
333 itermapp|iTerm.app on OSX,
335 # 256 colours are supported
339 initc=\E]4;%p1%d;rgb\:%p2%{255}%*%{1000}%/%2.2X/%p3%{255}%*%{1000}%/%2.2X/%p4%{255}%*%{1000}%/%2.2X\E\\,
340 setab=\E[%?%p1%{8}%<%t4%p1%d%e%p1%{16}%<%t10%p1%{8}%-%d%e48;5;%p1%d%;m,
341 setaf=\E[%?%p1%{8}%<%t3%p1%d%e%p1%{16}%<%t9%p1%{8}%-%d%e38;5;%p1%d%;m,
343 # Use supported init/reset strings
344 is2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
346 rs2=\E[m\E[?7h\E[4l\E>\E7\E[r\E[?1;3;4;6l\E8,
347 # move_standout_mode breaks Vim, but is need for offlineimap in screen :\
349 # back_tab unsupported, this makes Mutt work
351 # Makes the secondary screen work properly, taken from xterm-r6
353 rmcup=\E[2J\E[?47l\E8,