From 47b77cea07992ee718c8a4e2f91004c266bee0bc Mon Sep 17 00:00:00 2001 From: Jeremi Piotrowski Date: Thu, 14 Mar 2024 17:12:00 +0000 Subject: [PATCH] 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 --- .../coreos-overlay/coreos/config/env/sys-libs/ncurses | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/ncurses diff --git a/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/ncurses b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/ncurses new file mode 100644 index 0000000000..0788550fcd --- /dev/null +++ b/sdk_container/src/third_party/coreos-overlay/coreos/config/env/sys-libs/ncurses @@ -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} +}