#922153 ncurses-base: for screen and variants, please change smacs and rmacs to \E(0 and \E(B respectively #922153
- Package:
- ncurses-base
- Source:
- ncurses
- Submitter:
- Vincent Lefevre
- Date:
- 2022-02-03 10:24:04 UTC
- 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
...a wishlist item for "less". hmm - see "infocmp linux". We've discussed this before, by the way. not exactly - the last comment there points out that enacs has to be sent.
...a wishlist item for "less". hmm - see "infocmp linux". We've discussed this before, by the way. not exactly - the last comment there points out that enacs has to be sent.
I had reported the issue more than 12 years ago, in 2006: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=399848 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.
not so (see screenshot).
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.
On Mon, Feb 25, 2019 at 12:05:58AM +0100, Vincent Lefevre wrote: ... ... https://invisible-island.net/ncurses/ncurses.faq.html#home_terminfo (the file got there by your running infocmp without root-privilege)
On Mon, Feb 25, 2019 at 12:05:58AM +0100, Vincent Lefevre wrote: ... ... 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