Merge pull request #1449 from ucb-bar/clear-screen
Clear screen on prompt
This commit is contained in:
@@ -91,6 +91,7 @@ run_step() {
|
|||||||
# Check for this, since many users will be attempting to use this with gemmini
|
# Check for this, since many users will be attempting to use this with gemmini
|
||||||
if [ $TOOLCHAIN_TYPE == "esp-tools" ]; then
|
if [ $TOOLCHAIN_TYPE == "esp-tools" ]; then
|
||||||
while true; do
|
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
|
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
|
case "$validate" in
|
||||||
y | Y)
|
y | Y)
|
||||||
|
|||||||
@@ -65,6 +65,7 @@ restore_bash_options
|
|||||||
if [ "$git_tag_rc" -ne 0 ]; then
|
if [ "$git_tag_rc" -ne 0 ]; then
|
||||||
if [ "$FORCE" == false ]; then
|
if [ "$FORCE" == false ]; then
|
||||||
while true; do
|
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
|
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
|
case "$validate" in
|
||||||
y | Y)
|
y | Y)
|
||||||
|
|||||||
Reference in New Issue
Block a user