mirror of
https://github.com/tmux/tmux.git
synced 2024-11-19 19:08:50 +00:00
Bring a comment into line with reality.
This commit is contained in:
parent
df818c1b69
commit
385236e967
@ -359,11 +359,7 @@ tty_term_find(char *name, int fd, const char *overrides, char **cause)
|
|||||||
if (strcmp(tty_term_string(term, TTYC_OP), "\033[39;49m") == 0)
|
if (strcmp(tty_term_string(term, TTYC_OP), "\033[39;49m") == 0)
|
||||||
term->flags |= TERM_HASDEFAULTS;
|
term->flags |= TERM_HASDEFAULTS;
|
||||||
|
|
||||||
/*
|
/* Figure out if we have 256 or 88 colours. */
|
||||||
* Try to figure out if we have 256 or 88 colours. The standard xterm
|
|
||||||
* definitions are broken (well, or the way they are parsed is: in any
|
|
||||||
* case they end up returning 8). So also do a hack.
|
|
||||||
*/
|
|
||||||
if (tty_term_number(term, TTYC_COLORS) == 256)
|
if (tty_term_number(term, TTYC_COLORS) == 256)
|
||||||
term->flags |= TERM_256COLOURS;
|
term->flags |= TERM_256COLOURS;
|
||||||
if (tty_term_number(term, TTYC_COLORS) == 88)
|
if (tty_term_number(term, TTYC_COLORS) == 88)
|
||||||
|
Loading…
Reference in New Issue
Block a user