mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
Ticket #1972: Selections not visible on monochrome terminals
Reported-By: Dr. Stefan Thurner (TU-Chemnitz) Since 4.7, on monochrome terminals (eg. xterm-mono) the selections are not visible anymore (pre 4.7 inverted the selected text). Probably this has to do w/ the new skinning stuff. Fix issue: added additional check for b&w terminal into skins engine. Signed-off-by: Slava Zanko <slavazanko@gmail.com>
This commit is contained in:
parent
b5afd3ec4e
commit
f4c23b7081
@ -252,7 +252,7 @@ mc_skin_color_check_bw_mode (mc_skin_t * mc_skin)
|
||||
{
|
||||
gchar **groups, **orig_groups;
|
||||
|
||||
if (!mc_args__disable_colors)
|
||||
if ( tty_use_colors () && !mc_args__disable_colors)
|
||||
return;
|
||||
|
||||
orig_groups = groups = mc_config_get_groups (mc_skin->config, NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user