diff options
author | David Herrmann <dh.herrmann@gmail.com> | 2014-10-05 15:48:32 +0200 |
---|---|---|
committer | David Herrmann <dh.herrmann@gmail.com> | 2014-10-05 15:48:32 +0200 |
commit | 378c4eed029eb37eec31e56bd82ca5df2dee1e73 (patch) | |
tree | c8675cfbf71d530a2588a96ccf9e01b76cd80c9e /src | |
parent | c7afe4f3d74f0487c913ce49abc58fe59aaeac12 (diff) |
terminal/subterm: leave bold-light conversion to parent
We rely on the parent terminal to do color conversion, so also leave
bold->light conversion to the parent. Otherwise, it will be performed
twice and we might apply it on the wrong color.
Diffstat (limited to 'src')
-rw-r--r-- | src/libsystemd-terminal/subterm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/libsystemd-terminal/subterm.c b/src/libsystemd-terminal/subterm.c index dda6759709..93c06bea83 100644 --- a/src/libsystemd-terminal/subterm.c +++ b/src/libsystemd-terminal/subterm.c @@ -428,10 +428,7 @@ static int output_draw_cell_fn(term_screen *screen, output_printf(o, "\e[38;2;%u;%u;%um", attr->fg.red, attr->fg.green, attr->fg.blue); break; case TERM_CCODE_BLACK ... TERM_CCODE_WHITE: - if (attr->bold) - output_printf(o, "\e[%um", attr->fg.ccode - TERM_CCODE_BLACK + 90); - else - output_printf(o, "\e[%um", attr->fg.ccode - TERM_CCODE_BLACK + 30); + output_printf(o, "\e[%um", attr->fg.ccode - TERM_CCODE_BLACK + 30); break; case TERM_CCODE_LIGHT_BLACK ... TERM_CCODE_LIGHT_WHITE: output_printf(o, "\e[%um", attr->fg.ccode - TERM_CCODE_LIGHT_BLACK + 90); |