<s> """<STR_LIT>""" <EOL> from termios import * <EOL> __all__ = [ "<STR_LIT>" , "<STR_LIT>" ] <EOL> IFLAG = <NUM_LIT:0> <EOL> OFLAG = <NUM_LIT:1> <EOL> CFLAG = <NUM_LIT:2> <EOL> LFLAG = <NUM_LIT:3> <EOL> ISPEED = <NUM_LIT:4> <EOL> OSPEED = <NUM_LIT:5> <EOL> CC = <NUM_LIT:6> <EOL> def setraw ( fd , when = TCSAFLUSH ) : <EOL> """<STR_LIT>""" <EOL> mode = tcgetattr ( fd ) <EOL> mode [ IFLAG ] = mode [ IFLAG ] & ~ ( BRKINT | ICRNL | INPCK | ISTRIP | IXON ) <EOL> mode [ OFLAG ] = mode [ OFLAG ] & ~ ( OPOST ) <EOL> mode [ CFLAG ] = mode [ CFLAG ] & ~ ( CSIZE | PARENB ) <EOL> mode [ CFLAG ] = mode [ CFLAG ] | CS8 <EOL> mode [ LFLAG ] = mode [ LFLAG ] & ~ ( ECHO | ICANON | IEXTEN | ISIG ) <EOL> mode [ CC ] [ VMIN ] = <NUM_LIT:1> <EOL> mode [ CC ] [ VTIME ] = <NUM_LIT:0> <EOL> tcsetattr ( fd , when , mode ) <EOL> def setcbreak ( fd , when = TCSAFLUSH ) : <EOL> """<STR_LIT>""" <EOL> mode = tcgetattr ( fd ) <EOL> mode [ LFLAG ] = mode [ LFLAG ] & ~ ( ECHO | ICANON ) <EOL> mode [ CC ] [ VMIN ] = <NUM_LIT:1> <EOL> mode [ CC ] [ VTIME ] = <NUM_LIT:0> <EOL> tcsetattr ( fd , when , mode ) </s>
