[OpenWrt-Devel] [Patch] [Resend] Add terminfo file in ncurses

Jonathan Bennett jbscience87 at gmail.com
Mon Jun 16 14:09:45 EDT 2014


Didn't hear back on this, and realized I didn't quite format the previous
email correctly.


Ran into a problem SSHing into an Openwrt router from a Fedora machine.
Fedora sets terminfo to xterm-256color, but ncurses installed in openwrt
doesn't include that file in the firmware. This causes a few unintended
problems, namely nano fails to launch.
Attached patch adds xterm-256color to the files installed by ncurses.

Signed-off-by: Jonathan Bennett <jbscience87 at gmail.com>

diff --git a/package/libs/ncurses/Makefile b/package/libs/ncurses/Makefile
index 62ffdfb..26b7bf5 100644
--- a/package/libs/ncurses/Makefile
+++ b/package/libs/ncurses/Makefile
@@ -101,7 +101,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; \
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.infradead.org/pipermail/openwrt-devel/attachments/20140616/f4cfd589/attachment.htm>
-------------- next part --------------
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel


More information about the openwrt-devel mailing list