[Intel-gfx] [PATCH i-g-t 05/15] lib/igt_aux: Don't remove echo from terminal
Rodrigo Vivi
rodrigo.vivi at intel.com
Mon Jan 12 10:21:57 PST 2015
It is simply annoying to loose terminal echo. When debugging many times you
CTRL+C on terminal to kill test while it is waiting for key and than you
keep without echo. And this function is used whey you are debugging in
manual modes. So let's keep ECHO.
Signed-off-by: Rodrigo Vivi <rodrigo.vivi at intel.com>
---
lib/igt_aux.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/igt_aux.c b/lib/igt_aux.c
index 7668106..3bad6c0 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -482,7 +482,7 @@ void igt_debug_wait_for_keypress(const char *key)
tcgetattr ( STDIN_FILENO, &oldt );
newt = oldt;
- newt.c_lflag &= ~( ICANON | ECHO );
+ newt.c_lflag &= ~ICANON;
tcsetattr ( STDIN_FILENO, TCSANOW, &newt );
getchar();
tcsetattr ( STDIN_FILENO, TCSANOW, &oldt );
--
2.1.0
More information about the Intel-gfx
mailing list