From fe391bf2aca3439d5ba9722c74c39d4ba59ae65a Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 3 Jun 2025 07:35:01 +0530 Subject: [PATCH] Add a note about CSI 16 t as well --- docs/graphics-protocol.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/graphics-protocol.rst b/docs/graphics-protocol.rst index 912d1f755..1afbaf7e6 100644 --- a/docs/graphics-protocol.rst +++ b/docs/graphics-protocol.rst @@ -154,7 +154,9 @@ You can also use the *CSI t* escape code to get the screen size. Send ``[14t`` to ``STDOUT`` and kitty will reply on ``STDIN`` with ``[4;;t`` where ``height`` and ``width`` are the window size in pixels. This escape code is supported in many terminals, not just -kitty. +kitty. A more precise version of this escape code, which is however supported +in less terminals is ``[16t`` which causes the terminal to reply with the +pixel dimensions of a single cell. A minimal example ------------------