+2006-12-02 Bruno Haible <bruno@clisp.org>
+
+ * lib/term-ostream.oo.c (term_ostream_create): Recognize also the
+ terminal types rxvt[-16color] and konsole[-16color].
+
2006-12-01 Bruno Haible <bruno@clisp.org>
Preserve the hue of bright colors.
&& stream->orig_pair != NULL);
stream->colormodel =
(stream->supports_foreground || stream->supports_background
- ? (term != NULL && strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0
+ ? (term != NULL
+ && (/* Recognize xterm-16color, xterm-88color, xterm-256color. */
+ (strlen (term) >= 5 && memcmp (term, "xterm", 5) == 0)
+ || /* Recognize rxvt-16color. */
+ (strlen (term) >= 4 && memcmp (term, "rxvt", 7) == 0)
+ || /* Recognize konsole-16color. */
+ (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0))
? (stream->max_colors == 256 ? cm_xterm256 :
stream->max_colors == 88 ? cm_xterm88 :
stream->max_colors == 16 ? cm_xterm16 :