4 def __init__(self
, check
):
8 oldattr
=tty
.tcgetattr(sys
.stdin
)
10 newattr
[3] &= ~tty
.ICANON
11 tty
.tcsetattr(sys
.stdin
, tty
.TCSANOW
, newattr
)
12 def write(self
, data
):
13 sys
.stdout
.write("%s" % data
)
18 elif s
=='\n': self
.clear()
23 self
.write(data
+ '\n')