# nsterm - AppKit Terminal.app # $Id: nsterm.ti,v 1.13 2001/07/18 21:14:16 bsittler Exp $ # # Apple's MacOS X includes a Terminal.app derived from the old NeXT # Terminal.app. It is a partial VT100 emulation with some xterm-like # extensions. This terminfo was written to describe version 41 of # Terminal.app. # # Terminal.app runs under the MacOS X Quartz windowing system (and # other AppKit-supported windowing systems.) On the MacOS X machine I # use, the executable for Terminal.app is: # /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal # # If you're looking for a description of the full-screen system # console which runs under Apple's Darwin operating system on PowerPC # platforms, see the "xnuppc" entry instead. # # There are no function keys, at least not in version 41. # # It does not support mouse pointer position reporting. Under some # circumstances the cursor can be positioned using option-click; this # works by comparing the cursor position and the selected position, # and simulating enough cursor-key presses to move the cursor to the # selected position. This technique fails in all but the simplest # applications. # # It provides partial ANSI color support (background colors interact # badly with bold, though, as reflected in :ncv:.) The monochrome (-m) # entries are useful if you've disabled color support or use a # monochrome monitor. The full color (-c) entries are useful in # versions of Terminal.app which don't exhibit the background color # bug # # The configurable titlebar is set using xterm-compatible sequences; # it is used as a status bar in the statusline (-s) entries. Its width # depends on font sizes and window sizes, but 50 characters seems to # be the default for an 80x24 window. # # The MacRoman character encoding is used for some of the alternate # characters in the "MacRoman" entries; the "ASCII" (-7) entries # disable alternate character set support entirely, and the "VT100" # (-acs) entries rely instead on Terminal.app's own buggy VT100 # graphics emulation, which seems to think the character encoding is # the old NeXT charset instead of MacRoman. The "ASCII" (-7) entries # will be useful in Terminal.app versions which support UTF-8 and # other ASCII-compatible character encodings but do not correctly # implement VT100 graphics; once VT100 graphics are correctly # implemented in Terminal.app, the "VT100" (-acs) entries should be # usable in any ASCII-compatible character encoding. # # Terminal.app reports "vt100" as the terminal type, but exports # several environment variables which may aid detection in a shell # profile: # # TERM=vt100 # TERM_PROGRAM=Apple_Terminal # TERM_PROGRAM_VERSION=41 # # For example, the following Bourne shell script would detect the # correct terminal type: # # if [ :"$TERM" = :"vt100" -a :"$TERM_PROGRAM" = :"Apple_Terminal" ] # then # export TERM # TERM="nsterm" # fi # # In a C shell derivative, this would be accomplished by: # # if ( $?TERM && $?TERM_PROGRAM ) then # if ( :"$TERM" == :"vt100" && :"$TERM_PROGRAM" == :"Apple_Terminal" ) then # setenv TERM "nsterm" # endif # endif # The '+' entries are building blocks nsterm+7|AppKit Terminal.app v41 basic capabilities w/ASCII charset, cols#80, lines#24, bw, am, xenl, msgr, xon, it#8, bel=\007, cr=\015, csr=\033[%i%p1%d;%p2%dr, tbc=\033[3g, clear=\033[H\033[J, el=\033[K, ed=\033[J, cup=\033[%i%p1%d;%p2%dH, cud1=\012, home=\033[H, cub1=\010, cuf1=\033[C, cuu1=\033[A, dl1=\033[M, blink=\033[5m, bold=\033[1m, rev=\033[7m, smso=\033[7m, smul=\033[4m, sgr=\033[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m, sgr0=\033[m\017, rmso=\033[m, rmul=\033[m, il1=\033[L, kbs=\177, kcud1=\033OB, kcub1=\033OD, kcuf1=\033OC, kcuu1=\033OA, rmkx=\033[?1l\033>, smkx=\033[?1h\033=, dl=\033[%p1%dM, cud=\033[%p1%dB, il=\033[%p1%dL, cub=\033[%p1%dD, cuf=\033[%p1%dC, cuu=\033[%p1%dA, rs2=\033>\033[?3l\033[?4l\033[?5l\033[?7h\033[?8h, rc=\0338, sc=\0337, ind=\012, ri=\033M, hts=\033H, ht=\011, ka1=\033Oq, ka3=\033Os, kb2=\033Or, kc1=\033Op, kc3=\033On, smam=\033[?7h, rmam=\033[?7l, kent=\033OM, el1=\033[1K, u6=\033[%i%d;%dR, u7=\033[6n, u8=\033[?1;2c, u9=\033[c, nsterm+acs|AppKit Terminal.app v41 basic capabilities w/VT100 alternate-charset, use=nsterm+7, acsc=``aaffggjjkkllmmnnooppqqrrssttuuvvwwxxyyzz{{||}}~~, sgr=\033[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, smacs=\016, rmacs=\017, enacs=\033(B\033)0, nsterm+mac|AppKit Terminal.app v41 basic capabilities w/MacRoman alternate-charset, use=nsterm+7, acsc=0#`\327a*f\241g\261h#i\360jjkkllmmnno\370p\370q\321rrssttuuvvwwxxy\262z\263{\271|\255}\243~\245+\335-\366\,\334.\377, sgr=\033[0%?%p6%t;1%;%?%p2%t;4%;%?%p1%p3%|%t;7%;%?%p4%t;5%;m%?%p9%t\016%e\017%;, smacs=\016, rmacs=\017, enacs=\033(B\033)0, nsterm+s|AppKit Terminal.app v41 status-line (window titlebar) support, wsl#50, hs, dsl=\033]2;\007, fsl=\007, tsl=\033]2;, nsterm+c|AppKit Terminal.app v51 ANSI color support, colors#8, pairs#64, setaf=\033[3%p1%dm, setab=\033[4%p1%dm, op=\033[0m, nsterm+c41|AppKit Terminal.app v41 ANSI color support, use=nsterm+c, ncv#37, # These are different combinations of the building blocks # ASCII charset (-7) nsterm-m-7|nsterm-7-m|AppKit Terminal.app v41 w/ASCII charset (monochrome), use=nsterm+7, nsterm-m-s-7|nsterm-7-m-s|AppKit Terminal.app v41 w/ASCII charset (monochrome w/statusline), use=nsterm+7, use=nsterm+s, nsterm-7|AppKit Terminal.app v41 w/ASCII charset (color), use=nsterm+7, use=nsterm+c41, nsterm-7-c|nsterm-c-7|AppKit Terminal.app v51 w/ASCII charset (full color), use=nsterm+7, use=nsterm+c, nsterm-s-7|nsterm-7-s|AppKit Terminal.app v41 w/ASCII charset (color w/statusline), use=nsterm+7, use=nsterm+c41, use=nsterm+s, nsterm-c-s-7|nsterm-7-c-s|AppKit Terminal.app v51 w/ASCII charset (full color w/statusline), use=nsterm+7, use=nsterm+c, use=nsterm+s, # VT100 alternate-charset (-acs) nsterm-m-acs|nsterm-acs-m|AppKit Terminal.app v41 w/VT100 alternate-charset (monochrome), use=nsterm+acs, nsterm-m-s-acs|nsterm-acs-m-s|AppKit Terminal.app v41 w/VT100 alternate-charset (monochrome w/statusline), use=nsterm+s, use=nsterm+acs, nsterm-acs|AppKit Terminal.app v41 w/VT100 alternate-charset (color), use=nsterm+c41, use=nsterm+acs, nsterm-c-acs|nsterm-acs-c|AppKit Terminal.app v51 w/VT100 alternate-charset (full color), use=nsterm+c, use=nsterm+acs, nsterm-s-acs|nsterm-acs-s|AppKit Terminal.app v41 w/VT100 alternate-charset (color w/statusline), use=nsterm+c41, use=nsterm+s, use=nsterm+acs, nsterm-c-s-acs|nsterm-acs-c-s|AppKit Terminal.app v51 w/VT100 alternate-charset (full color w/statusline), use=nsterm+c, use=nsterm+s, use=nsterm+acs, # MacRoman charset nsterm-m|AppKit Terminal.app v41 w/MacRoman charset (monochrome), use=nsterm+mac, nsterm-m-s|AppKit Terminal.app v41 w/MacRoman charset (monochrome w/statusline), use=nsterm+mac, use=nsterm+s, nsterm|Apple_Terminal|AppKit Terminal.app v41 w/MacRoman charset (color), use=nsterm+mac, use=nsterm+c41, nsterm-c|AppKit Terminal.app v51 w/MacRoman charset (full color), use=nsterm+mac, use=nsterm+c, nsterm-s|AppKit Terminal.app v41 w/MacRoman charset (color w/statusline), use=nsterm+mac, use=nsterm+c41, use=nsterm+s, nsterm-c-s|AppKit Terminal.app v51 w/MacRoman charset (full color w/statusline), use=nsterm+mac, use=nsterm+c, use=nsterm+s, # $Log: nsterm.ti,v $ # Revision 1.13 2001/07/18 21:14:16 bsittler # fixed a type, added a single Apple_Terminal alias # # Revision 1.12 2001/07/13 00:23:22 bsittler # renamed nsterminal to nsterm to work around Solaric tic inadequacies # # Revision 1.11 2001/07/12 23:32:01 bsittler # cleaned up a note about charset compatibility # # Revision 1.10 2001/07/12 21:28:12 bsittler # renamed to nsterminal to better reflect its origins; # removed the Apple_Terminal names # # Revision 1.9 2001/07/11 19:09:33 bsittler # Switched the primary name from Apple_Terminal to osxterm to work around # unbelievably broken Solaris tic which *still* can't handle terminal names of # more than 15 characters! # # Revision 1.8 2001/07/11 19:03:15 bsittler # Added full color (-c) entries without :ncv:. # # Revision 1.7 2001/07/11 18:25:45 bsittler # Added RCS tags. #