Skip to contentSkip to conversation

xterm: add support for 256 colors

PATCH New Thierry Bultel 2 participants 2 messages Dec 9, 2014 – Feb 3, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xterm: add support for 256 colors

---
 package/xterm/Config.in | 9 +++++++++
 package/xterm/xterm.mk  | 4 ++++
 2 files changed, 13 insertions(+)
package/xterm/Config.in +9 -0
index e17d2c6..7dd4311 100644
@@ -8,3 +8,12 @@ config BR2_PACKAGE_XTERM
 	  xterm terminal emulator
 
 	  http://invisible-island.net/xterm/
+
+if BR2_PACKAGE_XTERM
+
+config BR2_PACKAGE_XTERM_256_COLOR
+	bool "xterm 256 colors"
+	help
+	   enable 256-color support
+	
+endif
package/xterm/xterm.mk +4 -0
index 9c6bd21..11d6cf4 100644
@@ -12,4 +12,8 @@ XTERM_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install
 XTERM_LICENSE = MIT
 XTERM_LICENSE_FILES = version.c
 
+ifeq ($(BR2_PACKAGE_XTERM_256_COLOR),y)
+XTERM_CONF_OPTS += --enable-256-color
+endif
+
 $(eval $(autotools-package))
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 xterm: add support for 256 colors

Dear Thierry Bultel,

Quoted 5 lines · Thierry Bultel
---
 package/xterm/Config.in | 9 +++++++++
 package/xterm/xterm.mk  | 4 ++++
 2 files changed, 13 insertions(+)

Adding a condition for such a small feature in a package that anyway has a huge dependency such as X.org didn't seem really useful, so I've dropped the additional config option, and just enabled 256 colors support unconditionally.

Thanks!

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com