I spent a little time messing with the interface today.
Here’s what I did, which may or may not be worth considering for your repo:
- Used a flash slot to save your
onboot.basfile. And set it to autoload. This works across power cycles and even if you remove the SD card. (Without using a flash slot like this, autoload was always loading my previously loaded program.) In my case, I did:
load "b:\onboot.bas"
flash save 1
option autorun 1 - added a line to menu.bas under the arrow key detection lines to press F1 to exit the menu
If Asc(a$)=145 Then End
(I couldn’t figure out a way to detect if Esc was pressed, so I made it F1 instead.) - assigned a shortcut key to run menu.bas
option F1 "run "+chr$(34)+"b:\menu.bas" +chr$(34)+chr$(13)+chr$(10)
Those last two things make it so from the prompt, you can press F1 to load the menu, and then inside the menu, press F1 again to return to the prompt.
I should have probably figured out how to clear the screen when the menu ends, but I guess I’ll leave that as an exercise for the reader. ![]()