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

std.io.tty: add getSize #22369

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

std.io.tty: add getSize #22369

wants to merge 2 commits into from

Conversation

wooster0
Copy link
Contributor

std.Progress/the compiler already has and requires the code so you might as well make it available in general.

See also: #22021

@wooster0 wooster0 force-pushed the size branch 3 times, most recently from e4539e4 to 2f9a873 Compare December 31, 2024 04:19
std.Progress/the compiler already has and requires the code so you might as
well make it available in general.
return null;
}
} else {
var winsize: posix.winsize = .{
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In case someone knows: can't this just be initialized to undefined? Or are there cases where a field would not be written to by ioctl? If only in case of failure that wouldn't matter obviously.

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.

1 participant