[PATCH i-g-t 05/15] lib/igt_aux: Don't remove echo from terminal

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx>
---
 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

_______________________________________________
Intel-gfx mailing list
Intel-gfx@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux