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

Method get

Lib/_pyrepl/terminfo.py:432–438  ·  view source on GitHub ↗

Get terminal capability string by name.

(self, cap: str)

Source from the content-addressed store, hash-verified

430 self._capabilities = capabilities
431
432 def get(self, cap: str) -> bytes | None:
433 """Get terminal capability string by name.
434 """
435 if not isinstance(cap, str):
436 raise TypeError(f"`cap` must be a string, not {type(cap)}")
437
438 return self._capabilities.get(cap)
439
440
441def tparm(cap_bytes: bytes, *params: int) -> bytes:

Callers 15

test_tparm_basicMethod · 0.95
test_no_newlineMethod · 0.95
bowMethod · 0.45
eowMethod · 0.45
do_cmdMethod · 0.45
handle1Method · 0.45
get_stemMethod · 0.45

Calls

no outgoing calls

Tested by 7

test_tparm_basicMethod · 0.76
test_no_newlineMethod · 0.76