From dfa0036326ad0347782b210a2fb55ceef9b1fbb6 Mon Sep 17 00:00:00 2001 From: dw-0 Date: Thu, 24 Oct 2024 12:24:05 +0200 Subject: [PATCH] refactor: don't clear scrollback on clear Signed-off-by: Dominik Willner --- kiauh.sh | 4 ++-- kiauh/core/menus/base_menu.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/kiauh.sh b/kiauh.sh index 4ecf842..7aec82d 100755 --- a/kiauh.sh +++ b/kiauh.sh @@ -10,7 +10,7 @@ #=======================================================================# set -e -clear +clear -x # make sure we have the correct permissions while running the script umask 022 @@ -110,7 +110,7 @@ function launch_kiauh_v6() { export PYTHONPATH="${entrypoint}" - clear + clear -x python3 "${entrypoint}/kiauh.py" } diff --git a/kiauh/core/menus/base_menu.py b/kiauh/core/menus/base_menu.py index 4963d93..a97f3a1 100644 --- a/kiauh/core/menus/base_menu.py +++ b/kiauh/core/menus/base_menu.py @@ -29,7 +29,7 @@ from utils.input_utils import get_selection_input def clear() -> None: - subprocess.call("clear", shell=True) + subprocess.call("clear -x", shell=True) def print_header() -> None: