def __call__(self):
#try:
import sys, tty, termios
#try:
#self.fd = sys.stdin.fileno()
#self.old_settings = termios.tcgetattr(self.fd)
if True:
#try:
tty.setcbreak(sys.stdin.fileno())
ch = sys.stdin.read(1)
#finally:
# termios.tcsetattr(self.fd, termios.TCSADRAIN, self.old_settings)
return ch
评论列表
文章目录