projects
/
dana
/
urxvt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7f7fa12
)
Add terminfo entry for rxvt-unicode with support for 256 colors.
author
sf-exg
<sf-exg>
Thu, 1 Apr 2010 16:34:41 +0000
(16:34 +0000)
committer
sf-exg
<sf-exg>
Thu, 1 Apr 2010 16:34:41 +0000
(16:34 +0000)
doc/etc/rxvt-unicode.terminfo
patch
|
blob
|
history
src/rxvt.h
patch
|
blob
|
history
diff --git
a/doc/etc/rxvt-unicode.terminfo
b/doc/etc/rxvt-unicode.terminfo
index
b3f0a09
..
578826b
100644
(file)
--- 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,
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
d60e6aa
..
f489128
100644
(file)
--- a/
src/rxvt.h
+++ b/
src/rxvt.h
@@
-249,7
+249,11
@@
struct mouse_event
# define COLORTERMENVFULL COLORTERMENV
#endif
#ifndef TERMENV
# 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)
#endif
#if defined (NO_MOUSE_REPORT) && !defined (NO_MOUSE_REPORT_SCROLLBAR)