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

Deprecate Termios #12940

Merged

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Jan 11, 2023

Follow-up to #12352.

The top-level Termios solely exists to turn the C enum values used by the few console methods on IO::FileDescriptor into Crystal enums; it is very platform-specific, the vast majority of those constants are unused anywhere else, and Termios::OutputMode doesn't even have the same members on all platforms (contrast with signals and Errno). This PR deprecates Termios and all of its enums.

The deprecations don't actually do anything yet, until #12939 is implemented. Also the constants inside LibC are untouched, because technically Termios still depends on them.

@straight-shoota straight-shoota added this to the 1.8.0 milestone Jan 13, 2023
@straight-shoota straight-shoota merged commit d857ddd into crystal-lang:master Jan 15, 2023
@HertzDevil HertzDevil deleted the refactor/deprecate-termios branch January 18, 2023 13:21
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants