# supports_kitty_keyboard_protocol

> **Function** in `deepagents_code`

📖 [View in docs](https://reference.langchain.com/python/deepagents-code/terminal_capabilities/supports_kitty_keyboard_protocol)

Return whether the attached terminal should be treated as kitty-aware.

Detection is side-effect free: it never writes escape sequences or reads
queued input bytes. That means it may under-detect some configurable
terminals, but it will not interfere with Textual's input stream.

Set `DEEPAGENTS_CODE_KITTY_KEYBOARD` to an accepted truthy value (`1`,
`true`, `yes`, `on`) to force-enable the label, a falsy value (`0`,
`false`, `no`, `off`) to force-disable it, or `auto`/unset to use
heuristic detection.

## Signature

```python
supports_kitty_keyboard_protocol() -> bool
```

## Returns

`bool`

`True` when the terminal is known to support the kitty keyboard

---

[View source on GitHub](https://github.com/langchain-ai/deepagents/blob/d1c6946218b4f0f86ab7b02b6bb6af1e4b75cede/libs/code/deepagents_code/terminal_capabilities.py#L79)