From a4e95087e16cd51c5af931529491ce0ae7b5c219 Mon Sep 17 00:00:00 2001 From: structix Date: Fri, 15 Dec 2017 16:14:24 +0100 Subject: [PATCH] Added raw input to suppress ctrl + c --- csoundbox.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/csoundbox.c b/csoundbox.c index d76219b..edfa5fc 100644 --- a/csoundbox.c +++ b/csoundbox.c @@ -3,7 +3,7 @@ #include #include #include -#include +#include //needed to release on close (ao_shutdown) #include "csoundbox.h" #include "config.h" @@ -59,6 +59,7 @@ void inputLocal(void) { initscr(); nonl(); //no newline noecho(); + raw(); //raw input (suppress ctrl + c) keypad(stdscr, TRUE); //Disable the F1-12 keypad curs_set(0); //Disable the cursor @@ -78,6 +79,7 @@ void inputNetwork(char *server) { initscr(); nonl(); //no newline noecho(); + raw(); //raw input (suppress ctrl + c) keypad(stdscr, TRUE); //Disable the F1-12 keypad curs_set(0); //Disable the cursor