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:
Slava Zanko 2010-01-28 13:24:43 +02:00
parent b5afd3ec4e
commit f4c23b7081

View File

@ -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);