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

feat(term): add cross-platform console state-aware support #29

Merged
merged 3 commits into from
Jan 12, 2024

Conversation

aymanbagabas
Copy link
Member

This basically ports https://github.com/golang/term but without the VT terminal stuff, ANSI codes, and exports platform-specific terminal state. On Unix, the state is unix.Termios, and on Windows, it's a uint32 representing the console mode
https://learn.microsoft.com/en-us/windows/console/getconsolemode.

This basically ports https://github.com/golang/term but without the VT
terminal stuff, ANSI codes, and exports platform-specific terminal
state. On Unix, the state is `unix.Termios`, and on Windows, it's a
`uint32` representing the console mode
https://learn.microsoft.com/en-us/windows/console/getconsolemode.
@aymanbagabas aymanbagabas requested review from caarlos0 and removed request for caarlos0 January 12, 2024 13:44
@aymanbagabas aymanbagabas merged commit 24b8333 into main Jan 12, 2024
40 checks passed
@aymanbagabas aymanbagabas deleted the term/main branch January 12, 2024 17:51
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.

2 participants