This is the mail archive of the cygwin-apps mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Updated terminfo and termcap definitions [Was: Re: 1.7.1 release date? (termcap)]


Andy Koppe wrote:
> 2009/11/21 Charles Wilson:
>>> This is a heads-up concerning changes to terminfo/termcap defintions. As
>>> discussed on cygwin-developers, here's a stab at providing /etc/termcap
>>> via terminfo:
>>>
>>> http://cygwin.cwilson.fastmail.fm/ITP/terminfo-5.7_20091114-10.dist
>> Updated versions:
>>
>> cygwin-1.5
>> http://cygwin.cwilson.fastmail.fm/ITP/terminfo-5.7_20091114-2.dist.tar
>>
>> cygwin-1.7
>> http://cygwin.cwilson.fastmail.fm/ITP/terminfo-5.7_20091114-11.dist.tar
> 
> Looking good, except for this minor issue:
> 
> $ etc/postinstall/terminfo.sh
> chmod: cannot operate on dangling symlink `Apple_Terminal'

Thanks. Previously, Apple_Terminal was an alias (symlink to) nsterm
(which was in the base terminfo package).  Now it's nsterm-old -- which
was in the -extra package.  I've moved it for the -12/-3 releases.

> Will there be an update for terminfo0 as well? A bunch of apps still
> depend on it (although apparently not on the kbs entry, as backspace
> works anyway).

Yes, but one thing at a time.

>> The cygwin-1.5 version incorporates the backspace=\177 changes for
>> screen, but not the cygwin console or xterm.
> 
> I think screen goes with whatever is set in its host terminal, i.e. if
> I change it to ^H in mintty (and restart), screen follows suit. Hence
> it's probably better to leave it at ^H for 1.5.

OK, then the 1.5 package(s) will not modify the terminfo.src at all.

>> These two release improve upon yesterday's /etc/termcap replacement:
>>
>> 1) actually include all the necessary terminal dependencies, so the
>> complex terminal descriptions (for, e.g., rxvt or xterm) actually work.
> 
> Yay, the termcap xterm entry now uses \e[?1049h instead of \e[?47h to
> switch to the alternate screen, which means no more old alternate
> screen contents showing up when invoking 'less' or 'man'.
> 
> Although, come to think of it, that doesn't happen on 1.7 anyway, so
> does the 'less' there already use terminfo?

As cgf said, less(1.7) does use terminfo. Sorry for the misinformation;
I "accidentally" tested less(1.5) -- by running less in a cygwin-1.5
session where the /etc/termcap was from the -1 package -- and discovered
"unknown terminal type". I didn't realize that less(1.7) and less(1.5)
were different.

>> 2) add (copy) aliases and term entries for terminals that were in the
>> termcap-20050421-1 version of /etc/termcap, but are not represented in
>> terminfo.  This is *probably* overkill, but for now I want to ensure
>> that "if it was in the old /etc/termcap, it is in the new one".
> 
> You mean "pcansi-mono25" and stuff like that? I'd drop them. If
> they're not in terminfo, very few things will work correctly anyway.
> If they can't be dropped now, when can they?

Here's the "extra" stuff that I'm currently adding to /etc/termcap,
beyond the terminfo-derived items:

other|generic, but neither dumb nor unknown:\
        :am:gn:\
        :co#80:\
        :cl=^M^J:do=^J:ho=^M:
arpanet|bussiplexer|dialup|ethernet|network|net|patch|plugboard|switch|network
switch or dialup:\
        :tc=unknown:
pcansi-mono25|ibm-pc terminal programs with 25 lines (mono mode):\
        :li#25:\
        :tc=pcansi-m:
pcansi-mono33|ibm-pc terminal programs with 33 lines (mono mode):\
        :li#33:\
        :tc=pcansi-m:
pcansi-mono43|ibm-pc terminal programs with 43 lines (mono mode):\
        :li#43:\
        :tc=pcansi-m:
linux-mono|Linux console, no color:\
        :Co@:pa@:\
        :AB@:Sb@:Sf@:tc=linux:

Plus, aliases for the following;

print    -> lpr
printing -> lpr
SC       -> screen
SH       -> screen-s
SB       -> screen-bce
ansisys  -> ansi.sys
ansi25   -> pcansi-25
ansi33   -> pcansi-33
ansi43   -> pcansi-43
ansi-pc-color -> klone+color

All of the items on the left were in the original /etc/termcap, but are
not/have not been in terminfo for ages.  I'm perfectly happy to remove
all or some of them.  cgf, any thoughts since termcap was your package
previously?

>> 3) add entries for hi-color variations of screen, xterm, and rxvt.
> 
> Good idea. Thanks!

N.P.

--
Chuck


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]