diff options
author | nicm <nicm> | 2023-06-26 07:17:40 +0000 |
---|---|---|
committer | nicm <nicm> | 2023-06-26 07:17:40 +0000 |
commit | ff8882a24f44594c871ad849f885bcd895836e73 (patch) | |
tree | e67d72c445185e87114130db83d660f7c9c8586b /tty.c | |
parent | 9e14c1f88de6bf812e0eaae0c05b782702e687f1 (diff) |
Add "us" to styles for underscore colour, GitHub issue 3589.
Diffstat (limited to 'tty.c')
-rw-r--r-- | tty.c | 13 |
1 files changed, 10 insertions, 3 deletions
@@ -483,6 +483,12 @@ tty_update_features(struct tty *tty) if (tty->term->flags & TERM_VT100LIKE) tty_puts(tty, "\033[?7727h"); + /* + * Features might have changed since the first draw during attach. For + * example, this happens when DA responses are received. + */ + server_redraw_client(c); + tty_invalidate(tty); } @@ -2808,9 +2814,10 @@ tty_check_us(__unused struct tty *tty, struct colour_palette *palette, gc->us = c; } - /* Underscore colour is set as RGB so convert a 256 colour to RGB. */ - if (gc->us & COLOUR_FLAG_256) - gc->us = colour_256toRGB (gc->us); + /* Underscore colour is set as RGB so convert. */ + gc->us = colour_force_rgb (gc->us); + if (gc->us == -1) + gc->us = 8; } static void |