Code Monkey home page Code Monkey logo

arduino-commandline's People

Contributors

basilfx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

arduino-commandline's Issues

Feature request: Prevent printing of escape sequence

I've been working with your command line code. Thanks for posting this.

I noticed a peculiarity regarding the history. It took me a while to understand that you are using a character from an escape sequence for the up and down arrows. As a result, the escape sequence is echoed to the screen briefly.

It would be nice to filter out the escape sequence so it does not appear in the serial stream.

Command history, Command not found - future improvements

possibility to enable and use notification about command not found

#ifdef COMMAND_NOT_FOUND_MESSAGE
    if (!success) {
       this->serial.println(COMMAND_NOT_FOUND_MESSAGE);
    }
#endif

useful for command history implementation(like in Linux console):
(for last 5 or 10 commands)

#define KEYCODE_UP 65
#define KEYCODE_DOWN 66
/**************************/
case KEYCODE_UP:
  if (length > 0) {
    // Move pointer
    length = 0;
    this->serial.write("\33[2K\r");
  }
break;
case KEYCODE_DOWN:
  if (length > 0) {
    // Move pointer
    length = 0;
    this->serial.write("\33[2K\r");
}
break;

and this future must have possibility to be enabled like plugin from #define

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.