From: Etienne Cordonnier <[email protected]>

https://git.openembedded.org/openembedded-core/commit/?id=5624dfcea87da54c49ba1d63b528da020f351908
 added support for tmux in ncurses-terminfo-base in 2015
by adding "TERM=screen". However the value of TERM is now a build option of 
tmux, and it uses TERM="tmux-256color" in my testing on Ubuntu / macOS.

This commit restores support for tmux in ncurses-terminfo-base. This fixes e.g. 
`top` not working when starting `tmux`, then `adb shell`, then `top`.

Signed-off-by: Etienne Cordonnier <[email protected]>
---
 meta/recipes-core/ncurses/ncurses.inc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/recipes-core/ncurses/ncurses.inc 
b/meta/recipes-core/ncurses/ncurses.inc
index 951f96beb5..8482db7f6e 100644
--- a/meta/recipes-core/ncurses/ncurses.inc
+++ b/meta/recipes-core/ncurses/ncurses.inc
@@ -182,7 +182,7 @@ do_install() {
 
         # include some basic terminfo files
         # stolen ;) from gentoo and modified a bit
-        for x in alacritty ansi console dumb linux rxvt screen screen-256color 
sun vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 xterm-256color
+        for x in alacritty ansi console dumb linux rxvt screen screen-256color 
sun tmux tmux-256color vt52 vt100 vt102 vt200 vt220 xterm-color xterm-xfree86 
xterm-256color
         do
                 local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 
2>/dev/null)"
                 local basedir="$(basename $(dirname "${termfile}"))"
-- 
2.43.0

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#227121): 
https://lists.openembedded.org/g/openembedded-core/message/227121
Mute This Topic: https://lists.openembedded.org/mt/116554179/21656
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub 
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to