basilfx / arduino-commandline Goto Github PK
View Code? Open in Web Editor NEWNo-nonsense serial command line interpreter.
License: MIT License
No-nonsense serial command line interpreter.
License: MIT License
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.