From 5b05b1235e8cc01f54a1f719e5854737bf209346 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 19 May 2025 06:22:45 +0530 Subject: [PATCH] Fix #8648 --- docs/text-sizing-protocol.rst | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/docs/text-sizing-protocol.rst b/docs/text-sizing-protocol.rst index 4cb94866f..984258ca2 100644 --- a/docs/text-sizing-protocol.rst +++ b/docs/text-sizing-protocol.rst @@ -255,17 +255,17 @@ Detecting if the terminal supports this protocol ----------------------------------------------------- To detect support for this protocol use the `CPR (Cursor Position Report) -`__ escape code. Send a ``CPR`` -followed by ``\e]_text_size_code;w=2; \a`` which will draw a space character in -two cells, followed by another ``CPR``. Then send ``\e]_text_size_code;s=2; \a`` -which will draw a space in a ``2 by 2`` block of cells, followed by another -``CPR``. +`__ escape code. Send a ``CR`` +(carriage return) followed by ``CPR`` followed by ``\e]_text_size_code;w=2; \a`` +which will draw a space character in two cells, followed by another ``CPR``. +Then send ``\e]_text_size_code;s=2; \a`` which will draw a space in a ``2 by 2`` +block of cells, followed by another ``CPR``. Then wait for the three responses from the terminal to the three CPR queries. If the cursor position in the three responses is the same, the terminal does -not support this protocol at all, if the second response has a different cursor -position then the width part is supported and if the third response has yet -another position, the scale part is supported. +not support this protocol at all, if the second response has the cursor +moved by two cells, then the width part is supported and if the third response has the +cursor moved by another two cells, then the scale part is supported. Interaction with other terminal controls