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

Tty #80

Merged
merged 2 commits into from
May 18, 2024
Merged

Tty #80

merged 2 commits into from
May 18, 2024

Conversation

skx
Copy link
Owner

@skx skx commented May 18, 2024

Use a stateful console-reading package

This pull-request changes the IO interface we're using to maintaining state - although this doesn't (yet) remove the use of stty which is tracked in #65, it does close #78 by avoiding the need to re-exec the program after every character.

Keeping track of the current "echo" vs "noecho" state means that we need to make this a global object, which we can reuse so we do that here.

skx added 2 commits May 18, 2024 21:36
This pull-request changes the IO interface we're using to maintaining
state - although this doesn't (yet) remove the use of `stty` which
is tracked in #65, it does close #78 by avoiding the need to re-exec
the program after every character.

Keeping track of the current "echo" vs "noecho" state means that
we need to make this a global object, which we can reuse so we
do that here.
@skx skx self-assigned this May 18, 2024
@skx skx merged commit 6b0371b into master May 18, 2024
2 checks passed
@skx skx deleted the tty branch May 18, 2024 18:41
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

Successfully merging this pull request may close these issues.

Global I/O helper
1 participant