From cc5e4e95d324f52d28ed6ace7d92e82abbe38f7f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 28 Apr 2024 10:01:51 +0530 Subject: [PATCH] Clarify actions to clear_terminal to_cursor --- kitty/boss.py | 2 +- kitty/options/definition.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kitty/boss.py b/kitty/boss.py index ace891547..8e410f2a0 100644 --- a/kitty/boss.py +++ b/kitty/boss.py @@ -1189,7 +1189,7 @@ class Boss: map f1 clear_terminal scrollback active # Scroll the contents of the screen into the scrollback map f1 clear_terminal scroll active - # Clear everything up to the line with the cursor or the start of the current prompt (needs shell integration) + # Clear everything on screen up to the line with the cursor or the start of the current prompt (needs shell integration) # Useful for clearing the screen up to the shell prompt and moving the shell prompt to the top of the screen. map f1 clear_terminal to_cursor active # Same as above except cleared lines are moved into scrollback diff --git a/kitty/options/definition.py b/kitty/options/definition.py index f93f31f77..8428f07cd 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -4155,7 +4155,7 @@ You can create shortcuts to clear/reset the terminal. For example:: map f1 clear_terminal scrollback active # Scroll the contents of the screen into the scrollback map f1 clear_terminal scroll active - # Clear everything up to the line with the cursor or the start of the current prompt (needs shell integration) + # Clear everything on screen up to the line with the cursor or the start of the current prompt (needs shell integration) map f1 clear_terminal to_cursor active # Same as above except cleared lines are moved into scrollback map f1 clear_terminal to_cursor_scroll active