Hi,

I would propose the following:
In the next screen upload, I will add "term screen5" to the default screenrc.

This would introduce a compatibility issue: remote systems (or local minimal installs & containers) without a screen5 terminfo may render badly or fail for
full-screen apps.

I'll document this in NEWS, and package a README.terminfo we distribute with
fixes & workarounds, ordered from best to worst:
- Install a more recent ncurses-term on the remote host
  (at least from Debian bullseye, 2021; or Ubuntu jammy, 2022 or later)
- Copy /usr/share/terminfo/s/screen5 to the remote host
- Add a fallback to the remote /etc/profile:
if [ "$TERM" = "screen5" ] && ! infocmp -x screen5 >/dev/null 2>&1; then
          TERM=screen
          export TERM
      fi
- Last resort: alias ssh='TERM=screen ssh'

Cheers,
Peter Dey

Reply via email to