Current sys-libs/ncurses-compat-5.9 does not recognise xterm-256color, probably due to an internal ncurses change. See https://bugs.gentoo.org/648720 https://bugs.gentoo.org/688894 I had the same problem with emacs and ncurses-5.9 and then ported ncurses-6.1_p20190609 to ABI 5.9 and then xterm-256color started to work. Attaching my quick port of ncurses-compat-6.1_p20190609
Created attachment 593620 [details] sys-libs/ncurses-compat-6.1_p20190609 ebuild Probably needs some tweaking
just noticed, --with-abi-version=5.9 should be --with-abi-version=5
I guess it also make sense from a security POV, 5.9 is rather old.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd23bd3d18dd64a0a5e34dea73a94603e2289f09 commit fd23bd3d18dd64a0a5e34dea73a94603e2289f09 Author: Lars Wendler <polynomial-c@gentoo.org> AuthorDate: 2019-12-03 12:05:09 +0000 Commit: Lars Wendler <polynomial-c@gentoo.org> CommitDate: 2019-12-03 12:06:02 +0000 sys-libs/ncurses-compat: Bump to version 6.1_p20190609 Thanks-to: Joakim Tjernlund <joakim.tjernlund@infinera.com> Closes: https://bugs.gentoo.org/698266 Package-Manager: Portage-2.3.80, Repoman-2.3.19 Signed-off-by: Lars Wendler <polynomial-c@gentoo.org> sys-libs/ncurses-compat/Manifest | 2 + .../files/ncurses-6.0-cppflags-cross.patch | 35 ++++ .../files/ncurses-6.0-pkg-config.patch | 14 ++ .../files/ncurses-6.0-rxvt-unicode-9.15.patch | 191 +++++++++++++++++ .../ncurses-compat/files/ncurses-6.0-ticlib.patch | 15 ++ .../ncurses-compat-6.1_p20190609.ebuild | 227 +++++++++++++++++++++ 6 files changed, 484 insertions(+)