This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

CLI autocomplete

Hey. Has anybody played with autocomplete for command line interface. I like it alot and it is very helpfull. Now a autocomplete would be cool!

Here is what comes to mind:

  • key as arrows and tab should be treated as return with the same text written again.

  • when is pressed we should compare our last argument with some kind of list.

  • when up and down arrows are pressed we should also go through some history list. I think 5 or 10 are enough.

Parents Reply
  • What do you mean not working? When I am flashing this hex to my board I am able to:

    • Execute command: "history"
    • Use up and down arrow to go through history list*
    • Unofrtunately in this version is small bug in the code. If history list is full [0-7] and when you will press up arror until you will see history cmd [0], console will be blocked until you will press enter. This will be fixed with new CLI release.

    What interface are you using? UART, USB or RTT?

Children
No Data
Related