repo: rxvt-unicode-sixel
action: commit
revision: 
path_from: 
revision_from: 690468ff8fecdb2102632b75a6fccc9cca282623:
path_to: 
revision_to: 
git.thebackupbox.net
rxvt-unicode-sixel
git clone git://git.thebackupbox.net/rxvt-unicode-sixel
commit 690468ff8fecdb2102632b75a6fccc9cca282623
Author: Emanuele Giaquinta 
Date:   Thu Apr 1 16:34:41 2010 +0000

    Add terminfo entry for rxvt-unicode with support for 256 colors.

diff --git a/doc/etc/rxvt-unicode.terminfo b/doc/etc/rxvt-unicode.terminfo
index b3f0a0959e3c7b6d4bfd48162257ff7d90d5ec4f..
index ..578826bfe1cd333b95152fb2355dd45eef317e69 100644
--- a/doc/etc/rxvt-unicode.terminfo
+++ b/doc/etc/rxvt-unicode.terminfo
@@ -162,3 +162,7 @@ rxvt-unicode|rxvt-unicode terminal (X Window System),
 	tsl=\E]2;,
 	fsl=\007,
 	dsl=\E]2;\007,
+
+rxvt-unicode-256color|rxvt-unicode terminal with 256 colors (X Window System),
+	colors#256,
+	use=rxvt-unicode,
diff --git a/src/rxvt.h b/src/rxvt.h
index d60e6aa91b2e0a58ca23298b8d54f5727f77f795..
index ..f489128b74e1a2c582c22ecd76deed99ab5831e0 100644
--- a/src/rxvt.h
+++ b/src/rxvt.h
@@ -249,7 +249,11 @@ struct mouse_event
 # define COLORTERMENVFULL COLORTERMENV
 #endif
 #ifndef TERMENV
-# define TERMENV        "rxvt-unicode"
+# ifdef USE_256_COLORS
+#  define TERMENV        "rxvt-unicode-256color"
+# else
+#  define TERMENV        "rxvt-unicode"
+#endif
 #endif

 #if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR)

-----END OF PAGE-----