[Intel-gfx] [PATCH i-g-t 5/9] lib/igt_aux: Don't remove echo from terminal

Rodrigo Vivi rodrigo.vivi at intel.com
Tue Dec 9 18:01:53 PST 2014


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 3051d84..49d1ec4 100644
--- a/lib/igt_aux.c
+++ b/lib/igt_aux.c
@@ -404,7 +404,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 );
-- 
1.9.3



More information about the Intel-gfx mailing list