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
  • Hello schef, Command line interface which is in SDK13 already have some of these features. Tab button provides completition of existing commands, up and down arrows allows you to go through history.

    We are currently working to introduce more advanced console application and we will try to add it with next SDK release. New features which you can expect:

    • handling left and right arrows,
    • handling home, end, insert button,
    • multi level commands with smart completion of each level,
    • optimized memory usage,
    • cooperation with log module - console will be able to display logs and introduce new commands in parallel,
    • user will have possibility to dynamically enable and disable logs

    Basically we want to provide really user friendly CLI.

    Recommended Putty settings for RTT connection:

    image descriptionimage descriptionimage description

Reply
  • Hello schef, Command line interface which is in SDK13 already have some of these features. Tab button provides completition of existing commands, up and down arrows allows you to go through history.

    We are currently working to introduce more advanced console application and we will try to add it with next SDK release. New features which you can expect:

    • handling left and right arrows,
    • handling home, end, insert button,
    • multi level commands with smart completion of each level,
    • optimized memory usage,
    • cooperation with log module - console will be able to display logs and introduce new commands in parallel,
    • user will have possibility to dynamically enable and disable logs

    Basically we want to provide really user friendly CLI.

    Recommended Putty settings for RTT connection:

    image descriptionimage descriptionimage description

Children
Related