-
Notifications
You must be signed in to change notification settings - Fork 11
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
Feature gate local echo. #9
Feature gate local echo. #9
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Could you flip the logic to rather add an echo
feature enabled by default?
I think that would fit better with features being additive in Rust.
It took me a long time to come back to this. It's done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great, thanks!
Looks good to me.
Could you add an entry to the changelog section in the README?
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, thank you!
Hello!
I'd like to propose adding a feature gate that disables local echo.
To implement this, I've added a new
no-echo
feature flag to theCargo.toml
file and wrapped the relevant code in an#[cfg(not(feature = "no-echo"))]
block. I've also added code to write the whole command after a carriage-return is a sent. This is wrapped in an#[cfg(feature = "no-echo")]
.I believe this feature will be useful for users who want to disable local echo in certain cases (when using menu with RTT transport for ex.). Please let me know if you have any questions or concerns.
Thank you!