* slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
force_colors is not set. This fixes color on unknown terminals.
Этот коммит содержится в:
родитель
5f2c890ba7
Коммит
5ac5f41332
@ -1,3 +1,8 @@
|
||||
2002-06-13 Oskar Liljeblad <oskar@osk.mine.nu>
|
||||
|
||||
* slint.c (has_colors): Don't reset SLtt_Use_Ansi_Colors to 0 if
|
||||
force_colors is not set. This fixes color on unknown terminals.
|
||||
|
||||
2002-06-13 Andrew V. Samoilov <kai@cmail.ru>
|
||||
|
||||
* user.c (expand_format): Fix '%b' proccessing.
|
||||
|
@ -472,7 +472,8 @@ int has_colors (void)
|
||||
char *cts = color_terminal_string, *s;
|
||||
int i;
|
||||
|
||||
SLtt_Use_Ansi_Colors = force_colors;
|
||||
if (force_colors)
|
||||
SLtt_Use_Ansi_Colors = 1;
|
||||
if (NULL != getenv ("COLORTERM"))
|
||||
SLtt_Use_Ansi_Colors = 1;
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user