Add terminfo entry for rxvt-unicode with support for 256 colors.
authorsf-exg <sf-exg>
Thu, 1 Apr 2010 16:34:41 +0000 (16:34 +0000)
committersf-exg <sf-exg>
Thu, 1 Apr 2010 16:34:41 +0000 (16:34 +0000)
doc/etc/rxvt-unicode.terminfo
src/rxvt.h

index b3f0a0959e3c7b6d4bfd48162257ff7d90d5ec4f..578826bfe1cd333b95152fb2355dd45eef317e69 100644 (file)
@@ -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,
index d60e6aa91b2e0a58ca23298b8d54f5727f77f795..f489128b74e1a2c582c22ecd76deed99ab5831e0 100644 (file)
@@ -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)