Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Redraw when window size is changed #24

Open
kindermannhubert opened this issue Dec 6, 2021 · 1 comment
Open

Redraw when window size is changed #24

kindermannhubert opened this issue Dec 6, 2021 · 1 comment

Comments

@kindermannhubert
Copy link
Collaborator

Is there any way to know if window size has been changed?
TciAOECKwT

@kindermannhubert
Copy link
Collaborator Author

There is probably no cross platform solution.
Looks like it can be done on windows with https://docs.microsoft.com/en-us/windows/console/readconsoleinput, WINDOW_BUFFER_SIZE_EVENT and with WaitForSignalObject described here https://stackoverflow.com/questions/46658472/non-blocking-readconsoleinput.
On other platforms I have no idea.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant