diff --git a/cava.c b/cava.c index e30310a..5d4359a 100644 --- a/cava.c +++ b/cava.c @@ -290,7 +290,7 @@ as of 0.4.0 all options are specified in config file, see in '/home/username/.co output_mode = p.output; #ifndef _MSC_VER - if (output_mode != OUTPUT_NCURSES || output_mode != OUTPUT_NONCURSES) { + if (output_mode == OUTPUT_NCURSES || output_mode == OUTPUT_NONCURSES) { // Check if we're running in a tty if (strncmp(ttyname(0), "/dev/tty", 8) == 0 || strcmp(ttyname(0), "/dev/console") == 0) inAtty = 1; diff --git a/output/terminal_noncurses.c b/output/terminal_noncurses.c index df61c59..431346d 100644 --- a/output/terminal_noncurses.c +++ b/output/terminal_noncurses.c @@ -154,7 +154,6 @@ int init_terminal_noncurses(int tty, char *const fg_color_string, char *const bg #else system("setterm -cursor off"); - system("setterm -blank 0"); system("clear"); #endif @@ -417,7 +416,6 @@ void cleanup_terminal_noncurses(void) { system("setfont >/dev/null 2>&1"); system("setfont /usr/share/consolefonts/Lat2-Fixed16.psf.gz >/dev/null 2>&1"); system("setterm -cursor on"); - system("setterm -blank 10"); system("clear"); #endif printf("\033[0m\n");