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

Clear command field after sending #18

Open
ppeters opened this issue Apr 22, 2024 · 3 comments
Open

Clear command field after sending #18

ppeters opened this issue Apr 22, 2024 · 3 comments

Comments

@ppeters
Copy link

ppeters commented Apr 22, 2024

I think it would be nice to clear the command 'line' after sending it...
by adding:

document.getElementById("command-text").value=""

in the sendCommand function (in the encrypted WebSerialWebPage.h)

To clarify: I use the commend line for multiple purposes and often forget to clear it, which results in concatenating the 'new' command I want to send with the previous one, resulting in something that is not recognized mostly (and IF recognized, not what I wanted probably :-) )

@mathieucarbou
Copy link
Contributor

Fyi you can have a look at my fork, which contains this feature plus a History lookup with up and down keys.

@ppeters
Copy link
Author

ppeters commented Apr 22, 2024 via email

@mathieucarbou
Copy link
Contributor

mathieucarbou commented Apr 22, 2024

It requires ESPAsyncWebServer and AsyncTCP. Any version of them would work, but the original repos are not maintained anymore so I am keeping them alive, fixed a lot of bugs, added Arduino 7 support, and made them compatible with the future Arduino 3 version (ESP-IDF 5.1). Backward compatibility is always maintained.

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

2 participants