Added raw input to suppress ctrl + c
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
#include <string.h>
|
||||
#include <ncurses.h>
|
||||
#include <getopt.h>
|
||||
#include <ao/ao.h>
|
||||
#include <ao/ao.h> //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
|
||||
|
||||
|
Reference in New Issue
Block a user