Patch to add xterm-256color to terminfo.
Fedora 18 and Mac OS X lion set $TERM to xterm-256color by default.
Without this patch ncurses based apps will error out with: "Error opening 
terminal: xterm-256color."

diff --git a/package/libs/ncurses/Makefile b/package/libs/ncurses/Makefile
index 465b60c..89b52fa 100644
--- a/package/libs/ncurses/Makefile
+++ b/package/libs/ncurses/Makefile
@@ -106,7 +106,7 @@ ifneq ($(HOST_OS),FreeBSD)
                        mv $$$$dir $$$$(echo -ne "\x$$$$dir"); \
                done \
        )
-       for file in a/ansi d/dumb l/linux r/rxvt r/rxvt-unicode s/screen 
v/vt100 v/vt102 x/xterm x/xterm-color; do \
+       for file in a/ansi d/dumb l/linux r/rxvt r/rxvt-unicode s/screen 
v/vt100 v/vt102 x/xterm x/xterm-color x/xterm-256color; do \
                $(INSTALL_DIR) $(1)/usr/share/terminfo/`dirname $$$$file`; \
                $(CP) $(PKG_INSTALL_DIR)/usr/share/terminfo/$$$$file \
                        $(1)/usr/share/terminfo/$$$$file; \

_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to