kitten-query-terminal(1)
π Name π
okay bestie, this is kitten-query-terminal(1) from the kitten Manual β the little kitten that asks your terminal what it can do and then spills the tea about its supported capabilities β¨. Itβs literally βQuery the terminal for various capabilities.β
πΈ Usage πΈ
kitten query-terminal [options] [query1 query2 ...]
π¦ Description π¦
so hereβs the vibe: this kitten queries the terminal itβs running inside for a whole bunch of capabilities. It sends escape codes to the terminal, waits for the response, and prints data about the supported capabilities based on what came back. big main character energy π
heads up though: this is a blocking operation, because it has to wait for the terminal to respond π. You can control the maximum wait time with the --wait-for option.
The output is lines shaped like this:
query: data
If some query isnβt supported by the running kitty version, the data comes out blank β no cap, just empty bestie π«Ά.
And when you call this from another program, be very careful not to do any I/O on the terminal device until this kitten exits. Like, fr fr, donβt touch it until itβs done.
Available queries are:
nameβ the terminal name, e.g.xterm-kittyπ·οΈversionβ the terminal version, e.g.0.49.2βallow_hyperlinksβ theallow_hyperlinksconfig option inkitty.conffor allowing hyperlinks; it can beyes,no, oraskπfont_familyβ the current fontβs PostScript name πbold_fontβ the current bold fontβs PostScript name πͺitalic_fontβ the current italic fontβs PostScript name β¨bold_italic_fontβ the current bold-italic fontβs PostScript name π₯font_sizeβ the current font size in pts πdpi_xβ the current DPI on the x-axis π§dpi_yβ the current DPI on the y-axis πΊοΈforegroundβ the current foreground color as a 24-bit#color code π¨backgroundβ the current background color as a 24-bit#color code ποΈbackground_opacityβ the current background opacity as a number between0and1π«₯clipboard_controlβ theclipboard_controlconfig option inkitty.conffor allowing reads/writes to/from the clipboard πos_nameβ the name of the OS the terminal is running on. kitty returns these values:bsd,linux,macos,unknownπ»
π Options π
--wait-for [=10]β the amount of time (in seconds) to wait for a response from the terminal, after querying it β³--help,-h [=no]β show help for this command πββοΈ
okay thatβs the whole page bestie π«Άπ β this was kitten-query-terminal(1) from the kitten Manual, version 0.49.2, dated Oct 01, 2026. mwah π
π¦ where this page comes from
- arch rolling: kitty 0.49.2-1 Β· GPL-3.0-only
- nixpkgs unstable: kitty-bin 0.49.2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms