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 b3f0a09..578826b 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 d60e6aa..f489128 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)