Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement command history feature #18

Open
joemcool opened this issue Nov 10, 2021 · 0 comments
Open

Implement command history feature #18

joemcool opened this issue Nov 10, 2021 · 0 comments

Comments

@joemcool
Copy link

I'd like to implement a command history feature. I imagine it would work similarly to other command shells, where the up and down arrow keys cycle through recently used commands. The user would have the option of making changes to a previous command's arguments before running it again. This may also lead to implementing the left and right arrow keys, allowing the user to move a cursor left and right when typing a command.

I expect this feature will require a significant amount of memory to be used, around 700 bytes for a 10 item long history list. This much memory usage only makes sense on larger modules (Arduino Mega, ESP8266, etc.), so this feature should be disabled by default and enabled via a macro in the Shell.h file.

I'm happy to implement this feature myself, but I'm curious if the community has input on how this feature would work?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant