diff options
author | nicm <nicm> | 2018-05-07 13:39:09 +0000 |
---|---|---|
committer | nicm <nicm> | 2018-05-07 13:39:09 +0000 |
commit | f915a4bf0c035968b07d5660760cf7f6503b016c (patch) | |
tree | 5a7d166916463148775fc7fb4c4497cf223c701f /tty.c | |
parent | 988c6bc433afe23b3883a0be54b8efa9d7d744f6 (diff) | |
download | rtmux-f915a4bf0c035968b07d5660760cf7f6503b016c.tar.gz rtmux-f915a4bf0c035968b07d5660760cf7f6503b016c.tar.bz2 rtmux-f915a4bf0c035968b07d5660760cf7f6503b016c.zip |
Handle terminfo colors > 256 correctly, GitHub issue 1337.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -2000,8 +2000,7 @@ tty_colours_fg(struct tty *tty, const struct grid_cell *gc) char s[32]; /* Is this a 24-bit or 256-colour colour? */ - if (gc->fg & COLOUR_FLAG_RGB || - gc->fg & COLOUR_FLAG_256) { + if (gc->fg & COLOUR_FLAG_RGB || gc->fg & COLOUR_FLAG_256) { if (tty_try_colour(tty, gc->fg, "38") == 0) goto save_fg; /* Should not get here, already converted in tty_check_fg. */ @@ -2030,8 +2029,7 @@ tty_colours_bg(struct tty *tty, const struct grid_cell *gc) char s[32]; /* Is this a 24-bit or 256-colour colour? */ - if (gc->bg & COLOUR_FLAG_RGB || - gc->bg & COLOUR_FLAG_256) { + if (gc->bg & COLOUR_FLAG_RGB || gc->bg & COLOUR_FLAG_256) { if (tty_try_colour(tty, gc->bg, "48") == 0) goto save_bg; /* Should not get here, already converted in tty_check_bg. */ |