allow echo
This commit is contained in:
parent
64a24f36e0
commit
6128d558cd
8
term.py
8
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())
|
||||
|
|
Loading…
Reference in New Issue