MCPcopy Create free account
hub / github.com/sqlmapproject/sqlmap / __call__

Method __call__

lib/utils/getch.py:29–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27 __import__("tty")
28
29 def __call__(self):
30 import sys
31 import termios
32 import tty
33
34 fd = sys.stdin.fileno()
35 old_settings = termios.tcgetattr(fd)
36 try:
37 tty.setraw(sys.stdin.fileno())
38 ch = sys.stdin.read(1)
39 finally:
40 termios.tcsetattr(fd, termios.TCSADRAIN, old_settings)
41 return ch
42
43class _GetchWindows(object):
44 def __init__(self):

Callers

nothing calls this directly

Calls 2

filenoMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected