From 638fefe4771e7745ca05a07d6debf81cb6f37f7c Mon Sep 17 00:00:00 2001 From: karl Date: Fri, 24 Nov 2023 20:41:33 +0100 Subject: [PATCH] disable blanking, for real this time --- cava.c | 2 +- output/terminal_noncurses.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) 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");