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 β€” the allow_hyperlinks config option in kitty.conf for allowing hyperlinks; it can be yes, no, or ask πŸ”—
  • 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 between 0 and 1 πŸ«₯
  • clipboard_control β€” the clipboard_control config option in kitty.conf for 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