PyDocs

Nav

Unix-specific services

setcbreak

tty

function (source) Unix
  • setcbreak(fd, when=termios.TCSAFLUSH)
Put terminal into cbreak mode.
Changed in 3.12, 3.12.2
  • 3.12: The return value is now the original tty attributes, instead of None.
  • 3.12.2: The ICRNL flag is no longer cleared. This restores the behavior of Python 3.11 and earlier as well as matching what Linux, macOS, & BSDs describe in their stty(1) man pages regarding cbreak mode.
0 Examples
No examples for tty/setcbreak.
See Also
No see-alsos for tty/setcbreak
0 Notes
No notes for setcbreak