Various fixes

This commit is contained in:
Martin Pulec
2015-07-14 17:15:29 +02:00
parent 425672678a
commit cecf08ac97
3 changed files with 2 additions and 3 deletions

View File

@@ -32,7 +32,7 @@ char *export_dir = NULL;
volatile bool should_exit_receiver = false;
volatile int log_level = LOG_LEVEL_INFO;
bool color_term = (strcmp(getenv("TERM"), "xterm") == 0 || strcmp(getenv("TERM"), "xterm-256color") == 0) && isatty(1) && isatty(2);
bool color_term = (getenv("TERM") && (strcmp(getenv("TERM"), "xterm") == 0 || strcmp(getenv("TERM"), "xterm-256color") == 0 || strcmp(getenv("TERM"), "screen") == 0)) && isatty(1) && isatty(2);
bool ldgm_device_gpu = false;