From 8fb40af2845e49e5d02d7fd00996a2e807ac3293 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 10 Oct 2025 17:33:55 +0530 Subject: [PATCH] Fix #9093 --- docs/misc-protocol.rst | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docs/misc-protocol.rst b/docs/misc-protocol.rst index c7caf098e..ba12573ad 100644 --- a/docs/misc-protocol.rst +++ b/docs/misc-protocol.rst @@ -43,6 +43,14 @@ When bit 8 is set it means the event is a mouse has left the window event, and all other bits should be ignored. The pixel position values must also be ignored as they may not be accurate. +An escape code to move the contents of the screen into the scrollback +------------------------------------------------------------------------------------- + +The escape code is ``\x1b [ 22 J`` (ignoring spaces present for clarity). It +moves all screen contents (text and images) into the scrollback leaving the +screen in the same state as it would be if the standard screen clear escape +code had been used ``\x1b [ 2 J``. + kitty specific private escape codes ---------------------------------------