I _guess_ it shouldn't be that hard to patch screen to make an exception to the "prepend 'screen.'" rule, and convert an implicitly created "screen.xterm-256color" into "screen-256color". (I haven't checked screen's source to see how easy it would be.)
This would go against its current documentation, so the documentation should be updated and probably a similar README.Debian entry should also be created. Also, before doing this, it should be examined and understood what's the difference between these two terminal descriptions (at least the file themselves are not exactly byte-by-byte the same). Alternatively, a similar workaround could go into shell startup files (probably /etc/bash.bashrc and /etc/zsh/zshrc) instead. If we're saying documenting the issue in screen's README.Debian is enough (as it might easily be, presumably there'll be tons of forums out there pointing to this file), the current addition really nicely summarizes the available workarounds, thanks! -- You received this bug notification because you are a member of Desktop Packages, which is subscribed to gnome-terminal in Ubuntu. https://bugs.launchpad.net/bugs/1726826 Title: screen 256 colour TERM setting breaks logging into older hosts Status in gnome-terminal package in Ubuntu: New Status in screen package in Ubuntu: Fix Committed Status in screen package in Debian: Confirmed Bug description: As of 16.04, the screen program started using a 256 colour setting. The problem is that this setting is relatively new and has not had a chance to propagate to older hosts, including something as new as the previous 15.x release. For example: -------------------------------------- paul@1604-host:~$ echo $TERM screen.xterm-256color paul@y1604-host:~$ ssh oldermachine Welcome to Ubuntu 15.04 (GNU/Linux 3.19.0-84-generic x86_64) * Documentation: https://help.ubuntu.com/ 0 packages can be updated. 0 updates are security updates. Last login: Mon Oct 23 15:52:17 2017 from yow-pgortmak-d1.wrs.com paul@oldermachine:~$ echo foo > foo paul@yoldermachine:~$ less foo WARNING: terminal is not fully functional foo (press RETURN) paul@oldermachine:~$ export TERM=screen paul@yoldermachine:~$ less foo foo paul@oldermachine:~$ cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=15.04 DISTRIB_CODENAME=vivid DISTRIB_DESCRIPTION="Ubuntu 15.04" paul@oldermachine:~$ ------------------------------------------ This makes it extremely annoying to use 16.04 in order to interact with any other linux/unix machines. The 256 color term type needs at least a couple years roll-out time before it becomes the default. Otherwise the older machines won't have it and they will complain and default to ancient crippled defaults and nag you each time they have to do so. To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gnome-terminal/+bug/1726826/+subscriptions -- Mailing list: https://launchpad.net/~desktop-packages Post to : [email protected] Unsubscribe : https://launchpad.net/~desktop-packages More help : https://help.launchpad.net/ListHelp

