MCPcopy
hub / github.com/google/python-fire / GetRawKey

Method GetRawKey

fire/console/console_attr.py:447–454  ·  view source on GitHub ↗

Reads one key press from stdin with no echo. Returns: The key name, None for EOF, for function keys, otherwise a character.

(self)

Source from the content-addressed store, hash-verified

445 return '{csi}{codes}m'.format(csi=self._csi, codes=';'.join(codes))
446
447 def GetRawKey(self):
448 """Reads one key press from stdin with no echo.
449
450 Returns:
451 The key name, None for EOF, <KEY-*> for function keys, otherwise a
452 character.
453 """
454 return self._get_raw_key[0]()
455
456 def GetTermIdentifier(self):
457 """Returns the TERM environment variable for the console.

Callers 3

_GetSearchCommandMethod · 0.80
_HelpMethod · 0.80
RunMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected