This commit is contained in:
Kovid Goyal 2018-06-15 17:53:04 +05:30
parent a7d533cfe5
commit 11f3d7e215
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -170,11 +170,11 @@ rectangular region of the screen from (3, 4) to (10, 11), you use::
Saving and restoring the default foreground/background/selection/cursor colors Saving and restoring the default foreground/background/selection/cursor colors
--------------------------------------------------------------------------------- ---------------------------------------------------------------------------------
It is often useful for a full screen application that has its own color themes It is often useful for a full screen application with its own color themes
to set the default foreground, background, selection and cursor colors. This to set the default foreground, background, selection and cursor colors. This
allows for various performance optimizations when drawing the screen. The allows for various performance optimizations when drawing the screen. The
problem is that if the user previously used the escape codes to change these problem is that if the user previously used the escape codes to change these
colors herself, then running the full screen application will overwrite her colors herself, then running the full screen application will lose her
changes even after it exits. To avoid this, kitty introduces a new pair of changes even after it exits. To avoid this, kitty introduces a new pair of
*OSC* escape codes to push and pop the current color values from a stack:: *OSC* escape codes to push and pop the current color values from a stack::