match changes made to cmdedit
This commit is contained in:
parent
d10f36fe2e
commit
5089534be0
@ -84,11 +84,8 @@ extern int more_main(int argc, char **argv)
|
|||||||
new_settings = initial_settings;
|
new_settings = initial_settings;
|
||||||
new_settings.c_lflag &= ~ICANON;
|
new_settings.c_lflag &= ~ICANON;
|
||||||
new_settings.c_lflag &= ~ECHO;
|
new_settings.c_lflag &= ~ECHO;
|
||||||
#ifndef linux
|
|
||||||
/* Hmm, in linux c_cc[] not parsed if set ~ICANON */
|
|
||||||
new_settings.c_cc[VMIN] = 1;
|
new_settings.c_cc[VMIN] = 1;
|
||||||
new_settings.c_cc[VTIME] = 0;
|
new_settings.c_cc[VTIME] = 0;
|
||||||
#endif
|
|
||||||
setTermSettings(fileno(cin), &new_settings);
|
setTermSettings(fileno(cin), &new_settings);
|
||||||
atexit(set_tty_to_initial_mode);
|
atexit(set_tty_to_initial_mode);
|
||||||
(void) signal(SIGINT, gotsig);
|
(void) signal(SIGINT, gotsig);
|
||||||
|
Loading…
Reference in New Issue
Block a user