Skip to contentSkip to conversation

ncurses: add xterm-256color to terminfo-base

PATCH In review Saul Wold 2 participants 2 messages Jul 12, 2013

lore
Share & tools
lore

Saul Wold

author
#0 lore raw

PATCH 1/1 ncurses: add xterm-256color to terminfo-base

This is to address the buildtools-tarball still having problems with certain xterms

[YOCTO #4835]

---
 meta/recipes-core/ncurses/ncurses.inc |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses.inc +1 -1
index 2ed1bba..671daf8 100644
@@ -174,7 +174,7 @@ shell_do_install() {
 
         # include some basic terminfo files
         # stolen ;) from gentoo and modified a bit
-        for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86
+        for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86 xterm-256color
         do
                 local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
                 local basedir="$(basename $(dirname "${termfile}"))"
Signature · 1 line
1.7.10.4
#1 lore raw
Quoted 4 lines · Saul Wold

This is to address the buildtools-tarball still having problems with certain xterms

[YOCTO #4835]

This is a reasonable workaround, but the real problem seems to be that nativesdk python/ncurses return crap (strings with embedded control codes) when they don't know what the TERM is. I think this is the real underlying problem that needs to be fixed, unfortunately I have no idea what the cause is.

The alternative is to somehow enforce terminal settings when using the buildtools-tarball are one of the known terminals.

--Mark

Quoted 19 lines
---
  meta/recipes-core/ncurses/ncurses.inc |    2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meta/recipes-core/ncurses/ncurses.inc +1 -1
index 2ed1bba..671daf8 100644
@@ -174,7 +174,7 @@ shell_do_install() {
 
          # include some basic terminfo files
          # stolen ;) from gentoo and modified a bit
-        for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86
+        for x in ansi console dumb linux rxvt screen sun vt{52,100,102,200,220} xterm-color xterm-xfree86 xterm-256color
          do
                  local termfile="$(find "${D}${datadir}/terminfo/" -name "${x}" 2>/dev/null)"
                  local basedir="$(basename $(dirname "${termfile}"))"