MCPcopy
hub / github.com/pallets/click / _getchar

Method _getchar

src/click/testing.py:495–502  ·  view source on GitHub ↗
(echo: bool)

Source from the content-addressed store, hash-verified

493
494 @_pause_echo(echo_input) # type: ignore
495 def _getchar(echo: bool) -> str:
496 char = sys.stdin.read(1)
497
498 if echo:
499 sys.stdout.write(char)
500
501 sys.stdout.flush()
502 return char
503
504 default_color = color
505

Callers

nothing calls this directly

Calls 3

readMethod · 0.80
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected