Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2022-02-03 Thread Vincent Lefevre
On 2019-04-06 15:20:21 -0400, Thomas Dickey wrote:
> On Mon, Feb 25, 2019 at 12:05:58AM +0100, Vincent Lefevre wrote:
> ...
> > This is not what I obtain:
> > 
> > zira:~> env | grep '^TERM'
> > TERM=linux
> > zira:~> infocmp
> > #   Reconstructed via infocmp from file: /home/vinc17/.terminfo/l/linux
> > [...]
> ...
> 
> https://invisible-island.net/ncurses/ncurses.faq.html#home_terminfo
> 
> (the file got there by your running infocmp without root-privilege)

Yes, I do that on purpose. The issue there is that the infocmp(1)
man page does not give correct information. I've just reported:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1004901

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2019-04-06 Thread Thomas Dickey
On Mon, Feb 25, 2019 at 12:05:58AM +0100, Vincent Lefevre wrote:
...
> This is not what I obtain:
> 
> zira:~> env | grep '^TERM'
> TERM=linux
> zira:~> infocmp
> #   Reconstructed via infocmp from file: /home/vinc17/.terminfo/l/linux
> [...]
...

https://invisible-island.net/ncurses/ncurses.faq.html#home_terminfo

(the file got there by your running infocmp without root-privilege)

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


signature.asc
Description: Digital signature


Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2019-02-24 Thread Vincent Lefevre
On 2019-02-23 21:17:38 -0500, Thomas Dickey wrote:
> On Sun, Feb 24, 2019 at 01:56:06AM +0100, Vincent Lefevre wrote:
> > No, "tput enacs" returns an error in Linux consoles, and has no effect
> > there. For instance, in xterm:
> 
> not so (see screenshot).

This is not what I obtain:

zira:~> env | grep '^TERM'
TERM=linux
zira:~> infocmp
#   Reconstructed via infocmp from file: /home/vinc17/.terminfo/l/linux
[...]

The infocmp(1) man page says:

FILES
   /etc/terminfo   Compiled terminal description database.

This doesn't look right.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2019-02-23 Thread Thomas Dickey
On Sun, Feb 24, 2019 at 01:56:06AM +0100, Vincent Lefevre wrote:
> No, "tput enacs" returns an error in Linux consoles, and has no effect
> there. For instance, in xterm:

not so (see screenshot).

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


signature.asc
Description: Digital signature


Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2019-02-23 Thread Vincent Lefevre
On 2019-02-23 17:37:19 -0500, Thomas Dickey wrote:
> On Tue, Feb 12, 2019 at 06:48:19PM +0100, Vincent Lefevre wrote:
> > Package: ncurses-base
> > Version: 6.1+20181013-2
> > Severity: wishlist
> > 
> > terminfo description of screen and variants have:
> > 
> >   smacs=^N
> >   rmacs=^O
> > 
> > One issue is that these sequences are not recognized by "less -R".
> 
> ...a wishlist item for "less".

I had reported the issue more than 12 years ago, in 2006:

  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=399848

> > A workaround would be to change them to:
> > 
> >   smacs=\E(0
> >   rmacs=\E(B
> > 
> > as in various other terminfo descriptions (e.g., xterm).
> > 
> > This seems to work even in the Linux consoles (virtual terminals),
> > which do not support \E(0 and \E(B, i.e. it appears that GNU Screen
> 
> hmm - see "infocmp linux".  We've discussed this before, by the way.
> 
> > does the translation for the real terminal.
> > 
> > Thus I suggest such a change, if there are no drawbacks.
> > 
> > Note: this was also suggested in
> > 
> >   https://savannah.gnu.org/bugs/?23646
> 
> not exactly - the last comment there points out that enacs has to be sent.

No, "tput enacs" returns an error in Linux consoles, and has no effect
there. For instance, in xterm:

$ echo "`tput smacs`mq`tput rmacs`> foo" > z

(i.e. this uses the \E(0 and \E(B escape sequences).

If I cat z directly in a Linux console, I get

mq> foo

but if I cat z in a GNU Screen running in a Linux console, I get

└─> foo

This means that using

  smacs=\E(0
  rmacs=\E(B

in a screen terminfo should be OK.

-- 
Vincent Lefèvre  - Web: 
100% accessible validated (X)HTML - Blog: 
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)



Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2019-02-23 Thread Thomas Dickey
On Tue, Feb 12, 2019 at 06:48:19PM +0100, Vincent Lefevre wrote:
> Package: ncurses-base
> Version: 6.1+20181013-2
> Severity: wishlist
> 
> terminfo description of screen and variants have:
> 
>   smacs=^N
>   rmacs=^O
> 
> One issue is that these sequences are not recognized by "less -R".

...a wishlist item for "less".

> A workaround would be to change them to:
> 
>   smacs=\E(0
>   rmacs=\E(B
> 
> as in various other terminfo descriptions (e.g., xterm).
> 
> This seems to work even in the Linux consoles (virtual terminals),
> which do not support \E(0 and \E(B, i.e. it appears that GNU Screen

hmm - see "infocmp linux".  We've discussed this before, by the way.

> does the translation for the real terminal.
> 
> Thus I suggest such a change, if there are no drawbacks.
> 
> Note: this was also suggested in
> 
>   https://savannah.gnu.org/bugs/?23646

not exactly - the last comment there points out that enacs has to be sent.

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


signature.asc
Description: Digital signature


Bug#922153: ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively

2019-02-12 Thread Vincent Lefevre
Package: ncurses-base
Version: 6.1+20181013-2
Severity: wishlist

terminfo description of screen and variants have:

  smacs=^N
  rmacs=^O

One issue is that these sequences are not recognized by "less -R".
A workaround would be to change them to:

  smacs=\E(0
  rmacs=\E(B

as in various other terminfo descriptions (e.g., xterm).

This seems to work even in the Linux consoles (virtual terminals),
which do not support \E(0 and \E(B, i.e. it appears that GNU Screen
does the translation for the real terminal.

Thus I suggest such a change, if there are no drawbacks.

Note: this was also suggested in

  https://savannah.gnu.org/bugs/?23646

-- System Information:
Debian Release: buster/sid
  APT prefers unstable-debug
  APT policy: (500, 'unstable-debug'), (500, 'stable-updates'), (500, 
'unstable'), (500, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 4.19.0-2-amd64 (SMP w/8 CPU cores)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE, 
TAINT_UNSIGNED_MODULE
Locale: LANG=POSIX, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=POSIX 
(charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

-- no debconf information