From 6128d558cdaf8162681aff1b272d057e6038f4c9 Mon Sep 17 00:00:00 2001 From: d6 Date: Mon, 23 Jan 2023 12:25:59 -0500 Subject: [PATCH] allow echo --- term.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/term.py b/term.py index ab5a7ba..7bc45fa 100755 --- a/term.py +++ b/term.py @@ -35,10 +35,10 @@ def main(): size = struct.pack("HHHH", rows, cols, 8, 8) fcntl.ioctl(fd, termios.TIOCSWINSZ, size) - # disable terminal echo - attr = termios.tcgetattr(fd) - attr[3] = attr[3] & ~termios.ECHO - termios.tcsetattr(fd, termios.TCSADRAIN, attr) + ## disable terminal echo + #attr = termios.tcgetattr(fd) + #attr[3] = attr[3] & ~termios.ECHO + #termios.tcsetattr(fd, termios.TCSADRAIN, attr) # use fd for the terminals stdin/stdout os.dup2(fd, sys.stdin.fileno())