top: a tweak to the recent 256-color termninal support
We now use the actual terminfo 'max_colors' value with the 'color mapping' screen, not that hard coded '256'. Reference(s): https://gitlab.com/procps-ng/procps/issues/96 Signed-off-by: Jim Warner <james.warner@comcast.net>
This commit is contained in:
@@ -3885,7 +3885,7 @@ signify_that:
|
||||
, CHKw(w, View_NOBOLD) ? N_txt(ON_word_only_txt) : N_txt(OFF_one_word_txt)
|
||||
, CHKw(w, Show_COLORS) ? N_txt(ON_word_only_txt) : N_txt(OFF_one_word_txt)
|
||||
, CHKw(w, Show_HIBOLD) ? N_txt(ON_word_only_txt) : N_txt(OFF_one_word_txt)
|
||||
, tgt, clr, w->grpname));
|
||||
, tgt, max_colors, clr, w->grpname));
|
||||
putp(Cap_clr_eos);
|
||||
fflush(stdout);
|
||||
|
||||
|
Reference in New Issue
Block a user