Bug#1057541: [ncurses-base] nload and possibly more, broken when launched over ssh (old issue reappears)

2023-12-06 Thread Sven Joachim
On 2023-12-06 02:57 +0500, Roman Mamedov wrote:

> Package: ncurses-base
> Version: 6.4-4
> Severity: normal
>
> Hello,
>
> As discussed in:
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=905247
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=933053
> I now see the exact same issue again after a bullseye -> bookworm upgrade.
>
> What happened there?

Basically an oversight.  In early 2021, upstream made changes to the
xterm* terminfo entries which rendered our workaround for #933053
useless.  Unfortunately I failed notice that, and nobody complained
during the 20+ months of bookworm development where this was the case.

Only a few weeks ago I became aware that the patch for #933053 had
actually been non-functional for two years, and dropped it
completely[1].

It seems that you are still running some rather old terminal emulator
from the Debian 9 era that does not implement the "repeat character"
feature.  Or maybe you are using mosh, which still fails in this
regard[2].

In any case, reintroducing the workaround into a stable Debian release
seems much harder to justify now than it was in 2019.  Basically all
popular terminal emulators that set $TERM to xterm or xterm-256color
have been fixed as of Debian 11 (most should be fixed in Debian 10).

If for some reason you cannot upgrade, there are a few workarounds.

- Set $TERM to something else than xterm(-256color).  What exactly is
  appropriate depends on your terminal emulator.

- Downgrade ncurses-base to the bullseye version - it seems you already
  did that.

- Install your own version of the xterm/xterm-256color terminfo entries
  without the "rep" capability.  Here is how you can do that:

  infocmp -x xterm | sed '$a\ rep@,' | tic -x -
  infocmp -x xterm-256color | sed '$a\ rep@,' | tic -x -

If you run these commands as root, they install the modified terminfo
entries into /etc/terminfo, otherwise into ${HOME}/.terminfo.  Both take
precedence over the system files under /lib/terminfo.

Good luck and sorry for the inconvenience.

Cheers,
   Sven


1. 
https://salsa.debian.org/debian/ncurses/-/commit/a63daf108bfdbaa05d7403e85ae34a5f7fb3fe70
2. https://bugs.debian.org/930037



Bug#1057541: [ncurses-base] nload and possibly more, broken when launched over ssh (old issue reappears)

2023-12-06 Thread Sven Joachim
On 2023-12-06 03:17 +0500, Roman Mamedov wrote:

> Downgrading to ncurses-base 6.2 (along with libncurses6 and libtinfo6) from
> bullseye, solves it.

You may want to upgrade the libncurses6 and libtinfo6 packages again,
downgrading them was neither necessary nor useful.

Cheers,
   Sven



Bug#1057541: [ncurses-base] nload and possibly more, broken when launched over ssh (old issue reappears)

2023-12-05 Thread Roman Mamedov
Hello,

Downgrading to ncurses-base 6.2 (along with libncurses6 and libtinfo6) from
bullseye, solves it.

-- 
With respect,
Roman