From c981c06dde300d1fe2e11bb8468b26e12e1496d7 Mon Sep 17 00:00:00 2001 From: sf-exg Date: Thu, 1 Apr 2010 16:34:41 +0000 Subject: [PATCH] Add terminfo entry for rxvt-unicode with support for 256 colors. --- doc/etc/rxvt-unicode.terminfo | 4 ++++ src/rxvt.h | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/doc/etc/rxvt-unicode.terminfo b/doc/etc/rxvt-unicode.terminfo index b3f0a095..578826bf 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 d60e6aa9..f489128b 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) -- 2.34.1