From 482f91d0e5707c8538e8ba5696886d837c8a5f83 Mon Sep 17 00:00:00 2001 From: abejgonzalez Date: Thu, 20 Apr 2023 14:48:54 -0700 Subject: [PATCH] Clear screen on prompt [ci skip] --- scripts/build-setup.sh | 1 + scripts/init-submodules-no-riscv-tools-nolog.sh | 1 + 2 files changed, 2 insertions(+) diff --git a/scripts/build-setup.sh b/scripts/build-setup.sh index aa78942b..262b3a19 100755 --- a/scripts/build-setup.sh +++ b/scripts/build-setup.sh @@ -91,6 +91,7 @@ run_step() { # Check for this, since many users will be attempting to use this with gemmini if [ $TOOLCHAIN_TYPE == "esp-tools" ]; then while true; do + printf '\033[2J' read -p "WARNING: You are trying to install the esp-tools toolchain."$'\n'"This should ONLY be used for Hwacha development."$'\n'"Gemmini should be used with riscv-tools."$'\n'"Type \"y\" to continue if this is intended, or \"n\" if not: " validate case "$validate" in y | Y) diff --git a/scripts/init-submodules-no-riscv-tools-nolog.sh b/scripts/init-submodules-no-riscv-tools-nolog.sh index 3f939bc2..b3426288 100755 --- a/scripts/init-submodules-no-riscv-tools-nolog.sh +++ b/scripts/init-submodules-no-riscv-tools-nolog.sh @@ -65,6 +65,7 @@ restore_bash_options if [ "$git_tag_rc" -ne 0 ]; then if [ "$FORCE" == false ]; then while true; do + printf '\033[2J' read -p "WARNING: You are not on an official release of Chipyard."$'\n'"Type \"y\" to continue if this is intended or \"n\" if not: " validate case "$validate" in y | Y)