? (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", 4) == 0)
- || /* Recognize konsole-16color. */
- (strlen (term) >= 7 && memcmp (term, "konsole", 7) == 0))
+ || /* Recognize *-16color. */
+ (strlen (term) > 8
+ && strcmp (term + strlen (term) - 8, "-16color") == 0)
+ || /* Recognize *-256color. */
+ (strlen (term) > 9
+ && strcmp (term + strlen (term) - 9, "-256color") == 0))
? (stream->max_colors == 256 ? cm_xterm256 :
stream->max_colors == 88 ? cm_xterm88 :
stream->max_colors == 16 ? cm_xterm16 :
with a low probability.
- The SIGTSTP and SIGCONT signal handlers could clobber errno.
* Added support for Windows consoles.
+* Improved support for TERM=Eterm-256color and TERM=mlterm-256color.
New in 0.7:
* Reliable tty control, as described by the ttyctl_t enum, is now implemented.