Clear screen on prompt [ci skip]

This commit is contained in:
abejgonzalez
2023-04-20 14:48:54 -07:00
parent 6d8680be60
commit 482f91d0e5
2 changed files with 2 additions and 0 deletions

View File

@@ -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)