Put terminal into cbreak mode.
(fd, when=TCSAFLUSH)
| 65 | return mode |
| 66 | |
| 67 | def setcbreak(fd, when=TCSAFLUSH): |
| 68 | """Put terminal into cbreak mode.""" |
| 69 | mode = tcgetattr(fd) |
| 70 | new = list(mode) |
| 71 | cfmakecbreak(new) |
| 72 | tcsetattr(fd, when, new) |
| 73 | return mode |
nothing calls this directly
no test coverage detected
searching dependent graphs…