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

Method __init__

Lib/_pyrepl/unix_eventqueue.py:72–77  ·  view source on GitHub ↗
(self, fd: int, encoding: str, ti: TermInfo)

Source from the content-addressed store, hash-verified

70
71class EventQueue(BaseEventQueue):
72 def __init__(self, fd: int, encoding: str, ti: TermInfo) -> None:
73 keycodes = get_terminal_keycodes(ti)
74 if os.isatty(fd):
75 backspace = tcgetattr(fd)[6][VERASE]
76 keycodes[backspace] = "backspace"
77 BaseEventQueue.__init__(self, encoding, keycodes)

Callers

nothing calls this directly

Calls 3

tcgetattrFunction · 0.90
get_terminal_keycodesFunction · 0.85
isattyMethod · 0.45

Tested by

no test coverage detected