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

Function setraw

Lib/tty.py:59–65  ·  view source on GitHub ↗

Put terminal into raw mode.

(fd, when=TCSAFLUSH)

Source from the content-addressed store, hash-verified

57 mode[CC][VTIME] = 0
58
59def setraw(fd, when=TCSAFLUSH):
60 """Put terminal into raw mode."""
61 mode = tcgetattr(fd)
62 new = list(mode)
63 cfmakeraw(new)
64 tcsetattr(fd, when, new)
65 return mode
66
67def setcbreak(fd, when=TCSAFLUSH):
68 """Put terminal into cbreak mode."""

Callers 1

spawnFunction · 0.90

Calls 4

tcgetattrFunction · 0.85
listClass · 0.85
cfmakerawFunction · 0.85
tcsetattrFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…