任何时候我在http://code.activestate.com/recipes/134892/上使用该配方我似乎无法使其正常工作.它总是抛出以下错误:
Traceback (most recent call last):
...
old_settings = termios.tcgetattr(fd)
termios.error: (22, 'Invalid argument)
Run Code Online (Sandbox Code Playgroud)
我最好的想法是,因为我在Eclipse中运行它所以termios正在抛出关于文件描述符的东西.