Get terminal capability string by name.
(self, cap: str)
| 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 | |
| 441 | def tparm(cap_bytes: bytes, *params: int) -> bytes: |
no outgoing calls