Move the query_terminal implementation to Go

This commit is contained in:
Kovid Goyal
2024-05-08 13:00:40 +05:30
parent f0cac79143
commit 2be91d73dd
9 changed files with 98 additions and 60 deletions

View File

@@ -17,8 +17,9 @@ slow, since it requires a roundtrip to the terminal emulator and back.
If you want to do some of the same querying in your terminal program without
depending on the kitten, you can do so, by processing the same escape codes.
Search `this page <https://invisible-island.net/xterm/ctlseqs/ctlseqs.html>`__
for *XTGETTCAP* to see the syntax for the escape code and read the source of
this kitten to find the values of the keys for the various queries.
for *XTGETTCAP* to see the syntax for the escape code. The kitty specific keys
are all documented below, when sent via escape code they must be prefixed with
``kitty-query-``.
.. include:: ../generated/cli-kitten-query_terminal.rst