From e8b8fb75c52b8f19ec6c8c5da9a8049ce02d9da0 Mon Sep 17 00:00:00 2001 From: karl Date: Mon, 3 Nov 2014 21:34:52 +0100 Subject: [PATCH] turned off echo if cava is force killed echo must be turned on manualy with "stty -echo" --- cava.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cava.c b/cava.c index 05b4fcc..c017af6 100644 --- a/cava.c +++ b/cava.c @@ -25,7 +25,8 @@ void sigint_handler(int sig_no) system("setfont /usr/share/consolefonts/Lat2-Fixed16.psf.gz "); system("setterm -cursor on"); system("setterm -blank 10"); - system("clear"); + system("clear"); + system("stty echo"); printf("CTRL-C pressed -- goodbye\n"); sigaction(SIGINT, &old_action, NULL); kill(0, SIGINT); @@ -408,6 +409,7 @@ system("setterm -blank 0"); //resetting console printf("\033[0m\n"); system("clear"); +system("stty -echo"); printf("\033[%dm",col);//setting color