MCPcopy
hub / github.com/pyload/pyload / Getch

Class Getch

module/lib/Getch.py:1–16  ·  view source on GitHub ↗

Gets a single character from standard input. Does not echo to the screen.

Source from the content-addressed store, hash-verified

1class Getch:
2 """
3 Gets a single character from standard input. Does not echo to
4 the screen.
5 """
6
7 def __init__(self):
8 try:
9 self.impl = _GetchWindows()
10 except ImportError:
11 try:
12 self.impl = _GetchMacCarbon()
13 except(AttributeError, ImportError):
14 self.impl = _GetchUnix()
15
16 def __call__(self): return self.impl()
17
18
19class _GetchUnix:

Callers 1

__init__Method · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected