Skip to content

Commit

Permalink
Only exit for small screen sizes during startup (#423)
Browse files Browse the repository at this point in the history
  • Loading branch information
yubiuser authored Feb 24, 2025
2 parents b00933f + 57b3ff8 commit f92959c
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions padd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1324,9 +1324,7 @@ SizeChecker(){
height=10
# Below Pico. Gives you nothing...
else
# Nothing is this small, sorry
printf "%b" "${check_box_bad} Error!\n PADD isn't\n for ants!\n"
exit 1
padd_size="ants"
fi

# Center the output (default position)
Expand Down Expand Up @@ -1538,6 +1536,12 @@ ShowVersion() {

StartupRoutine(){

if [ "$1" = "ants" ]; then
# If the screen is too small from the beginning, exit
printf "%b" "${check_box_bad} Error!\n PADD isn't\n for ants!\n"
exit 1
fi

# Clear the screen and move cursor to (0,0).
# This mimics the 'clear' command.
# https://vt100.net/docs/vt510-rm/ED.html
Expand Down

0 comments on commit f92959c

Please sign in to comment.