MCPcopy Index your code
hub / github.com/python/cpython / setcbreak

Function setcbreak

Lib/tty.py:67–73  ·  view source on GitHub ↗

Put terminal into cbreak mode.

(fd, when=TCSAFLUSH)

Source from the content-addressed store, hash-verified

65 return mode
66
67def 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

Callers

nothing calls this directly

Calls 4

tcgetattrFunction · 0.85
listClass · 0.85
cfmakecbreakFunction · 0.85
tcsetattrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…