Working on de-sloping the LLM port of linenoise to replace our current command line parser:
- Better history
- Linear working buffer for easier life
- Circular history buffer with up/down
- Can use different working buffers so that prompts and command line use different systems. This prevents a lot of little bugs here and there (like using a command prompt blows out history with the old system).
- Tab completion/hints/completion.
There’s a lot of hacks to the current version, but it’s a good starting point.
I’m not sure exactly how I want the tab completion vs hinting to work. It’s probably going to be a part of a larger project to restructure how global/mode commands are registered and how the short/long flags work. Test firmware here:
bus_pirate5_rev10-linenoise.zip (405.2 KB)
