bug-ncurses
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Description of Apple's MacOS X Terminal.app "VT-100" emulator


From: Thomas Dickey
Subject: Re: Description of Apple's MacOS X Terminal.app "VT-100" emulator
Date: Tue, 10 Apr 2001 05:12:13 -0400
User-agent: Mutt/1.2.5i

On Mon, Apr 09, 2001 at 10:13:20PM -0500, Benjamin C. W. Sittler wrote:
> Attached is a preliminary terminfo description of the Terminal.app
> included in Apple's MacOS X. While not exhaustive, it does seem to work
> with emacs, lynx, vi, less, bash, ls, ncurses, and screen. Also attached
> is a termcap version automatically generated from the terminfo source.

thanks.  "seems to work" is a little weak -- I find that if I run 'tack'
from ncurses, that there are occasional small fixes to make, e.g., in
bw, xenl, etc., which I would overlook.  Did you do that too?  (This looks
complete, by eye).  You might also take a look at the checking options of
tic (tic -cv).  The differences appear to be more than just the trailing ^O:
 
"foo.ti", line 1, terminal 'Apple_Terminal-ascii-m': tsl uses 0 parameters, 
expected 1
"foo.ti", line 1, terminal 'Apple_Terminal-ascii-m': enter_standout_mode 
differs from sgr(1): "\e[0;1;7m\^O"
"foo.ti", line 1, terminal 'Apple_Terminal-ascii-m': enter_underline_mode 
differs from sgr(2): "\e[0;4m\^O"
"foo.ti", line 1, terminal 'Apple_Terminal-ascii-m': enter_reverse_mode differs 
from sgr(3): "\e[0;7m\^O"
"foo.ti", line 1, terminal 'Apple_Terminal-ascii-m': enter_blink_mode differs 
from sgr(4): "\e[0;5m\^O"
"foo.ti", line 1, terminal 'Apple_Terminal-ascii-m': enter_bold_mode differs 
from sgr(6): "\e[0;1m\^O"
"foo.ti", line 22, terminal 'Apple_Terminal-ascii': tsl uses 0 parameters, 
expected 1
"foo.ti", line 22, terminal 'Apple_Terminal-ascii': enter_standout_mode differs 
from sgr(1): "\e[0;1;7m\^O"
"foo.ti", line 22, terminal 'Apple_Terminal-ascii': enter_underline_mode 
differs from sgr(2): "\e[0;4m\^O"
"foo.ti", line 22, terminal 'Apple_Terminal-ascii': enter_reverse_mode differs 
from sgr(3): "\e[0;7m\^O"
"foo.ti", line 22, terminal 'Apple_Terminal-ascii': enter_blink_mode differs 
from sgr(4): "\e[0;5m\^O"
"foo.ti", line 22, terminal 'Apple_Terminal-ascii': enter_bold_mode differs 
from sgr(6): "\e[0;1m\^O"
"foo.ti", line 26, terminal 'Apple_Terminal-m': tsl uses 0 parameters, expected 
1
"foo.ti", line 26, terminal 'Apple_Terminal-m': enter_standout_mode differs 
from sgr(1): "\e[0;1;7m\^O"
"foo.ti", line 26, terminal 'Apple_Terminal-m': enter_underline_mode differs 
from sgr(2): "\e[0;4m\^O"
"foo.ti", line 26, terminal 'Apple_Terminal-m': enter_reverse_mode differs from 
sgr(3): "\e[0;7m\^O"
"foo.ti", line 26, terminal 'Apple_Terminal-m': enter_blink_mode differs from 
sgr(4): "\e[0;5m\^O"
"foo.ti", line 26, terminal 'Apple_Terminal-m': enter_bold_mode differs from 
sgr(6): "\e[0;1m\^O"
"foo.ti", line 30, terminal 'Apple_Terminal': tsl uses 0 parameters, expected 1
"foo.ti", line 30, terminal 'Apple_Terminal': enter_standout_mode differs from 
sgr(1): "\e[0;1;7m\^O"
"foo.ti", line 30, terminal 'Apple_Terminal': enter_underline_mode differs from 
sgr(2): "\e[0;4m\^O"
"foo.ti", line 30, terminal 'Apple_Terminal': enter_reverse_mode differs from 
sgr(3): "\e[0;7m\^O"
"foo.ti", line 30, terminal 'Apple_Terminal': enter_blink_mode differs from 
sgr(4): "\e[0;5m\^O"
"foo.ti", line 30, terminal 'Apple_Terminal': enter_bold_mode differs from 
sgr(6): "\e[0;1m\^O"

> NOTES
> 
> The version of Terminal.app (version "41") used during the construction of
> this terminfo description identifies itself as TERM="vt100", but it also
> exports TERM_PROGRAM="Apple_Terminal" and TERM_PROGRAM_VERSION="41". An
> intelligent login script (/etc/profile or the like) could deduce
> TERM="Apple_Terminal" from these environment variables.
> 
> Version "41" of Terminal.app has a few oddities and shortcomings which
> lead to the four included entries: character set support is slightly
> broken, function keys are missing, color support is slightly broken, and
> the user can enable or disable color using a checkbox in the preferences
> panel.

hmm - what sort of "slightly broken" (details would help everyone)
 
> Strict VT-100 emulation mode is not accounted for by these terminal
> descriptions, as most users leave it disabled. Mouse cursor position
> reporting is not described by these descriptions, but appears to work in
> Emacs [use Option-click to position the cursor.] The Terminal.app titlebar
> is configurable using the same sequences understood by xterm, and is used
> as a status line by these terminal descriptions.

if we added kmous=\e[M, would that work for ncurses?

-- 
Thomas E. Dickey <address@hidden>
http://dickey.his.com
ftp://dickey.his.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]