Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Thomas Dickey

On Sat, 23 Jul 2005, Daniel Jacobowitz wrote:


Since the terminfo shipped with xterm is primarily of interest for the
"real" and current xterm, and the terminfo shipped with ncurses is
supposed to cover a wide variety of all kinds of oddball terminals, I
am inclined to take only the entries describing our xterm from
debian/xterm.ti (i.e. from the xterm source); let ncurses's
misc/terminfo.src supply things like xterm-r6.  As a side effect, that
would fix this problem for Vincent.  Does that sound reasonable?


perhaps - I'll be checking over the two (and comparing against the X11R6.1 
source) just to see that nothing got lost.  Checking terminfo seems to be 
very time-consuming (I've been doing some of that today). But in 
principle, ncurses should be the source for the various terminals, and 
xterm to reflect _its_ special stuff.


However, ncurses' xterm-color has kbs=^H (which I don't see a point in
changing, since there _are_ no terminals that match it in Debian).


Hmm, I just checked - Red Hat's xterm-r6 terminfo uses \177 so they
must be getting it from xterm.  My Solaris box is down.  HPUX uses
kbs=\177 but has no kdch1 at all (that's for "xterm").  Darwin uses
kdch1=\E[3~ for xterm and xterm-r6.


Redhat - yes, that's something on one of the bugzillas.  They had been 
patching things, decided not to, found that people used the changes, want 
to be like Debian, but upstream ncurses and xterm don't match what they 
were using. Etc.


Solaris uses kbs=^H, as do the *BSD's.  Solaris has no kdch1 in its
xterm terminfo (though X11R6.1 does).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Daniel Jacobowitz
On Sat, Jul 23, 2005 at 10:44:49AM -0400, Thomas E. Dickey wrote:
> >I'm a bit confused really; the xterm-r6 definition in misc/terminfo.src
> >has kdch1=\E[3~.  The xterm-r6 definition in debian/xterm.ti has
> >kdch1=\177, and I'm pretty sure we get that from the xterm source
> >distribution... I wonder why they diverged?
> 
> I'm not 100% sure, since some of the changes are old.  I see looking at 
> xterm's terminfo history that kdch1 was originally \E[3~. In August 1996, 
> there's a change to make it \177.  I don't see that in any of my patches 
> (though I did make other changes to the terminfo around then - added the 
> ech string).
> 
> The XFree86 CVS only shows "updates" for the change comment on that file. 
> So who and why the change was made - I doubt that the answer is 
> forthcoming.  I don't see any xterm-fixes for that period in XFree86's
> changelog other than mine, and doubt that David Dawes recalls who 
> submitted the change.
> 
> ncurses's terminfo is maintained separately, and I probably ignored this 
> since when I compare the two, I'm focused on the XFree86 flavor - 
> xterm-r6 and xterm-r5 are in xterm's file just for convenience.

Right, I understand.

Since the terminfo shipped with xterm is primarily of interest for the
"real" and current xterm, and the terminfo shipped with ncurses is
supposed to cover a wide variety of all kinds of oddball terminals, I
am inclined to take only the entries describing our xterm from
debian/xterm.ti (i.e. from the xterm source); let ncurses's
misc/terminfo.src supply things like xterm-r6.  As a side effect, that
would fix this problem for Vincent.  Does that sound reasonable?

Hmm, I just checked - Red Hat's xterm-r6 terminfo uses \177 so they
must be getting it from xterm.  My Solaris box is down.  HPUX uses
kbs=\177 but has no kdch1 at all (that's for "xterm").  Darwin uses
kdch1=\E[3~ for xterm and xterm-r6.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Thomas Dickey

On Sun, 24 Jul 2005, Vincent Lefevre wrote:


On 2005-07-23 09:38:31 -0400, Thomas Dickey wrote:

hmm - a quick glance at the code shows this is another of the ones that
claim it's xterm-compatible (I see some "xterm" and "vt100" literals).
I'd suggest testing that theory with vttest.  The only mention of vttest
in the changelog is two years old "largely works".


I tried with tack (I don't have vttest), and IIRC, I found only one
problem. There are also problems with the numeric keypad, and also
the numeric keypad gives unknown escape sequences.


tack doesn't check the vt100-compatibility; it just makes generic checks
on the terminfo contents.  vttest would provide a check for the keyboard
(as well as other things).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Vincent Lefevre
On 2005-07-23 09:38:31 -0400, Thomas Dickey wrote:
> hmm - a quick glance at the code shows this is another of the ones that 
> claim it's xterm-compatible (I see some "xterm" and "vt100" literals). 
> I'd suggest testing that theory with vttest.  The only mention of vttest 
> in the changelog is two years old "largely works".

I tried with tack (I don't have vttest), and IIRC, I found only one
problem. There are also problems with the numeric keypad, and also
the numeric keypad gives unknown escape sequences.

> The source code doesn't contain a terminfo or termcap.  Nor does it 
> contain any real documentation.  Perhaps you can file a bug report against
> iTerm, suggesting that this be provided.

Done.

> "xterm-color" might work for you, but I see no reason to change 
> "xterm-color" to match this - it would then be different from what other 
> people have come to think of as "xterm-color".

Well, http://www.ibb.net/~anne/keyboard.html says that kbs=\177 and
kdch1=\E[3~ are the correct values. And currently xterm-color is
inconsistent with xterm (that has the above values as expected).
And both xterm-xfree86 and xterm-vt220 have kbs=^H, which is
incorrect too.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Thomas Dickey

On Sun, 24 Jul 2005, Vincent Lefevre wrote:


On 2005-07-23 09:38:31 -0400, Thomas Dickey wrote:

hmm - a quick glance at the code shows this is another of the ones that
claim it's xterm-compatible (I see some "xterm" and "vt100" literals).
I'd suggest testing that theory with vttest.  The only mention of vttest
in the changelog is two years old "largely works".


I tried with tack (I don't have vttest), and IIRC, I found only one
problem. There are also problems with the numeric keypad, and also
the numeric keypad gives unknown escape sequences.


The source code doesn't contain a terminfo or termcap.  Nor does it
contain any real documentation.  Perhaps you can file a bug report against
iTerm, suggesting that this be provided.


Done.


;-)


"xterm-color" might work for you, but I see no reason to change
"xterm-color" to match this - it would then be different from what other
people have come to think of as "xterm-color".


Well, http://www.ibb.net/~anne/keyboard.html says that kbs=\177 and


Sure enough - on the internet you can find text to support any argument.
(I don't regard that one as authoritative - just a nuisance).

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Thomas Dickey

On Sat, 23 Jul 2005, Daniel Jacobowitz wrote:


On Sat, Jul 23, 2005 at 07:09:13AM -0400, Thomas E. Dickey wrote:

On Sat, 23 Jul 2005, Vincent Lefevre wrote:


Package: ncurses-base
Version: 5.4-9
Severity: normal

"infocmp xterm-color" says kdch1=\177 though the delete-character key
returns \E[3~.


There's no need to change this, since as noted in the comments in
terminfo.src, it does not correspond to any terminal type that is valid
for Debian.


Which comments?


I was thinking of
# The 'nxterm' distributed with Redhat Linux 5.2 is a slight rehack of
# xterm-sb_right-ansi-3d, which implements ANSI colors, but does not support
# SGR 39 or 49.  SGR 0 does reset colors (along with everything else).  This
# description is "compatible" with color_xterm, rxvt and XFree86 xterm, except
# that each of those implements the home, end, delete keys differently.
#
# Redhat Linux 6.x distributes XFree86 xterm as "nxterm", which uses bce
# colors; note that this is not compatible with the 5.2 version.
# csw (2002-05-15): make xterm-color primary instead of nxterm, to

"compatible" means it doesn't break anything bad.
But there's no such terminal.



I'm a bit confused really; the xterm-r6 definition in misc/terminfo.src
has kdch1=\E[3~.  The xterm-r6 definition in debian/xterm.ti has
kdch1=\177, and I'm pretty sure we get that from the xterm source
distribution... I wonder why they diverged?


I'm not 100% sure, since some of the changes are old.  I see looking at 
xterm's terminfo history that kdch1 was originally \E[3~. In August 1996, 
there's a change to make it \177.  I don't see that in any of my patches 
(though I did make other changes to the terminfo around then - added the 
ech string).


The XFree86 CVS only shows "updates" for the change comment on that file. 
So who and why the change was made - I doubt that the answer is 
forthcoming.  I don't see any xterm-fixes for that period in XFree86's
changelog other than mine, and doubt that David Dawes recalls who 
submitted the change.


ncurses's terminfo is maintained separately, and I probably ignored this 
since when I compare the two, I'm focused on the XFree86 flavor - 
xterm-r6 and xterm-r5 are in xterm's file just for convenience.


If I noticed it before, probably regarded it as confusion between kbs and 
kdch1 (as for example my fixes for xterm patch #124).


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Daniel Jacobowitz
On Sat, Jul 23, 2005 at 07:09:13AM -0400, Thomas E. Dickey wrote:
> On Sat, 23 Jul 2005, Vincent Lefevre wrote:
> 
> >Package: ncurses-base
> >Version: 5.4-9
> >Severity: normal
> >
> >"infocmp xterm-color" says kdch1=\177 though the delete-character key
> >returns \E[3~.
> 
> There's no need to change this, since as noted in the comments in 
> terminfo.src, it does not correspond to any terminal type that is valid
> for Debian.

Which comments?

I'm a bit confused really; the xterm-r6 definition in misc/terminfo.src
has kdch1=\E[3~.  The xterm-r6 definition in debian/xterm.ti has
kdch1=\177, and I'm pretty sure we get that from the xterm source
distribution... I wonder why they diverged?

-- 
Daniel Jacobowitz
CodeSourcery, LLC


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Thomas Dickey

On Sat, 23 Jul 2005, Vincent Lefevre wrote:


On 2005-07-23 07:09:13 -0400, Thomas Dickey wrote:

On Sat, 23 Jul 2005, Vincent Lefevre wrote:

"infocmp xterm-color" says kdch1=\177 though the delete-character
key returns \E[3~.


There's no need to change this, since as noted in the comments in
terminfo.src, it does not correspond to any terminal type that is
valid for Debian.


The problem is when one connects (by ssh) from a non-Debian OS. In my
case, I'm using iTerm under Mac OS X and connect to a Debian machine
by ssh.


Then use a correct terminfo for Iterm.

hmm - a quick glance at the code shows this is another of the ones that 
claim it's xterm-compatible (I see some "xterm" and "vt100" literals). 
I'd suggest testing that theory with vttest.  The only mention of vttest 
in the changelog is two years old "largely works".


Glancing through, I can see some obvious problems with the code.  It 
appears to be a subset of vt100 with some random xterm features tossed in.

That's reading the code.  I'm disregarding the advertising in its webpage.

The source code doesn't contain a terminfo or termcap.  Nor does it 
contain any real documentation.  Perhaps you can file a bug report against

iTerm, suggesting that this be provided.

"xterm-color" might work for you, but I see no reason to change 
"xterm-color" to match this - it would then be different from what other 
people have come to think of as "xterm-color".


--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Vincent Lefevre
On 2005-07-23 07:09:13 -0400, Thomas Dickey wrote:
> On Sat, 23 Jul 2005, Vincent Lefevre wrote:
> >"infocmp xterm-color" says kdch1=\177 though the delete-character
> >key returns \E[3~.
> 
> There's no need to change this, since as noted in the comments in
> terminfo.src, it does not correspond to any terminal type that is
> valid for Debian.

The problem is when one connects (by ssh) from a non-Debian OS. In my
case, I'm using iTerm under Mac OS X and connect to a Debian machine
by ssh.

-- 
Vincent Lefèvre <[EMAIL PROTECTED]> - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / SPACES project at LORIA


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-23 Thread Thomas Dickey

On Sat, 23 Jul 2005, Vincent Lefevre wrote:


Package: ncurses-base
Version: 5.4-9
Severity: normal

"infocmp xterm-color" says kdch1=\177 though the delete-character key
returns \E[3~.


There's no need to change this, since as noted in the comments in 
terminfo.src, it does not correspond to any terminal type that is valid

for Debian.

--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Bug#319554: ncurses-base: xterm-color terminfo should have kdch1=\E[3~

2005-07-22 Thread Vincent Lefevre
Package: ncurses-base
Version: 5.4-9
Severity: normal

"infocmp xterm-color" says kdch1=\177 though the delete-character key
returns \E[3~.

-- System Information:
Debian Release: testing/unstable
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.11.10-20050517
Locale: LANG=POSIX, LC_CTYPE=en_US.ISO8859-1 (charmap=ISO-8859-1)

Versions of packages ncurses-base depends on:
ii  libncurses5   5.4-9  Shared libraries for terminal hand

ncurses-base recommends no packages.

-- no debconf information


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]