parameters: (fd, when=TCSAFLUSH)
docstring: Put terminal into a raw mode.
docstring_summary: Put terminal into a raw mode.
docstring_tokens: Put terminal into a raw mode .
function: def setraw(fd, when=TCSAFLUSH):
      """Put terminal into a raw mode."""
      mode = tcgetattr(fd)
      mode[IFLAG] = mode[IFLAG] & ~(BRKINT | ICRNL | INPCK | ISTRIP | IXON)
      mode[OFLAG] = mode[OFLAG] & ~(OPOST)
      mode[CFLAG] = mode[CFLAG] & ~(CSIZE | PARENB)
      mode[CFLAG] = mode[CFLAG] | CS8
      mode[LFLAG] = mode[LFLAG] & ~(ECHO | ICANON | IEXTEN | ISIG)
      mode[CC][VMIN] = 1
      mode[CC][VTIME] = 0
      tcsetattr(fd, when, mode)
function_tokens: def setraw ( fd , when = TCSAFLUSH ) : mode = tcgetattr ( fd ) mode [ IFLAG ] = mode [ IFLAG ] & ~ ( BRKINT | ICRNL | INPCK | ISTRIP | IXON ) mode [ OFLAG ] = mode [ OFLAG ] & ~ ( OPOST ) mode [ CFLAG ] = mode [ CFLAG ] & ~ ( CSIZE | PARENB ) mode [ CFLAG ] = mode [ CFLAG ] | CS8 mode [ LFLAG ] = mode [ LFLAG ] & ~ ( ECHO | ICANON | IEXTEN | ISIG ) mode [ CC ] [ VMIN ] = 1 mode [ CC ] [ VTIME ] = 0 tcsetattr ( fd , when , mode )