query_terminal.rst 915 B

1234567891011121314151617181920212223242526
  1. Query terminal
  2. =================
  3. .. only:: man
  4. Overview
  5. --------------
  6. This kitten is used to query |kitty| from terminal programs about version, values
  7. of various runtime options controlling its features, etc.
  8. The querying is done using the (*semi*) standard XTGETTCAP escape sequence
  9. pioneered by xterm, so it works over SSH as well. The downside is that it is
  10. slow, since it requires a roundtrip to the terminal emulator and back.
  11. If you want to do some of the same querying in your terminal program without
  12. depending on the kitten, you can do so, by processing the same escape codes.
  13. Search `this page <https://invisible-island.net/xterm/ctlseqs/ctlseqs.html>`__
  14. for *XTGETTCAP* to see the syntax for the escape code. The kitty specific keys
  15. are all documented below, when sent via escape code they must be prefixed with
  16. ``kitty-query-``.
  17. .. include:: ../generated/cli-kitten-query_terminal.rst