fixed threaded input
This commit is contained in:
@@ -101,16 +101,17 @@ void init_termios(int args) {
|
||||
current.c_lflag &= ~ICANON;
|
||||
|
||||
if(args == 0x01) {
|
||||
current.c_lflag |= ECHO;
|
||||
//current.c_lflag |= ECHO;
|
||||
} else {
|
||||
current.c_lflag &= ~ECHO;
|
||||
//current.c_lflag &= ~ECHO;
|
||||
}
|
||||
|
||||
tcsetattr(0,TCSAFLUSH, ¤t);
|
||||
tcsetattr(0,0, ¤t);
|
||||
}
|
||||
|
||||
void reset_termios(void) {
|
||||
tcsetattr(0, TCSAFLUSH, &old);
|
||||
//current.c_lflag &= ~ECHO;
|
||||
tcsetattr(0, 0, &old);
|
||||
}
|
||||
|
||||
char term_getch() {
|
||||
|
||||
Reference in New Issue
Block a user