AgonConsole8 / agon-mos

Official AGON QUARK Firmware for Console8: eZ80 MOS
MIT License
25 stars 10 forks source link

Command history (slightly enhanced) #20

Closed stevesims closed 10 months ago

stevesims commented 10 months ago

Building on work done by @HeathenUK in #11 this adds a few enhancements

brief summary of changed/enhanced functionality: if you are at the start of a line and press up, it will go to the previous history item if there is one, otherwise do nothing if you are somewhere along a line and press up it will either go up a line within the current string or if you’re already at the top line of that string go to the beginning if you are at the end of a line and press down it will go to the next history item if there is one, otherwise do nothing if you are somewhere along a line and press down it will either go down a line within the current string, or if you’re already on the bottom line go to the end

you’re always left at the end of a line when moving position in history - this means that you’ll usually need to press up twice to go to a previous entry