sys-libs/ncurses: Install tmux terminfo

Debian tmux seems to set TERM=tmux-256color, not TERM=screen. This
causes issues when ssh-ing into flatcar from tmux. Copy the screen
terminfo files as the tmux ones, they should be mostly compatible.

Tmux terminfo files are removed because of USE=minimal, but I don't see
a way to hook into the ebuild and prevent the removal easily.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
This commit is contained in:
Jeremi Piotrowski 2024-03-14 17:12:00 +00:00
parent e5867917ec
commit 47b77cea07

View File

@ -0,0 +1,5 @@
cros_post_src_install_tmux_terminfo() {
mkdir -p "${ED}/usr/share/terminfo/t"
cp "${ED}/usr/share/terminfo/"{s/screen,t/tmux}
cp "${ED}/usr/share/terminfo/"{s/screen-256color,t/tmux-256color}
}