script: refactoring of the flash routine

script: uart devices can be detected/selected now

script: first implementation of a little help page
This commit is contained in:
th33xitus
2021-09-12 16:14:00 +02:00
parent 9463b719e4
commit fb4367bb41
4 changed files with 296 additions and 263 deletions

View File

@@ -1,6 +1,6 @@
#ui total width = 57 chars
top_border(){
echo -e "/=======================================================\ "
echo -e "/=======================================================\\"
}
bottom_border(){
@@ -8,7 +8,7 @@ bottom_border(){
}
blank_line(){
echo -e "| | "
echo -e "| |"
}
hr(){
@@ -17,13 +17,19 @@ hr(){
quit_footer(){
hr
echo -e "| ${red}Q) Quit${default} | "
echo -e "| ${red}Q) Quit${default} |"
bottom_border
}
back_footer(){
hr
echo -e "| ${green}B) Back${default} | "
echo -e "| ${green}B) « Back${default} |"
bottom_border
}
back_help_footer(){
hr
echo -e "| ${green}B) « Back${default} | ${yellow}H) Help [?]${default} |"
bottom_border
}