merged changes from RC_1_0

This commit is contained in:
Arvid Norberg
2015-05-26 19:10:49 +00:00
parent 09bc072c31
commit f1c998c1ef
2 changed files with 5 additions and 1 deletions

View File

@@ -124,7 +124,8 @@ struct set_keypress
tcgetattr(0,&stored_settings);
new_settings = stored_settings;
// Disable canonical mode, and set buffer size to 1 byte
new_settings.c_lflag &= (~ICANON);
// and disable echo
new_settings.c_lflag &= ~(ICANON | ECHO);
new_settings.c_cc[VTIME] = 0;
new_settings.c_cc[VMIN] = 1;
tcsetattr(0,TCSANOW,&new_settings);