ajalt / mordant

Multiplatform text styling for Kotlin command-line applications
https://ajalt.github.io/mordant/
Apache License 2.0
982 stars 34 forks source link

Slightly non-obvious description of the updateTerminalSize method #135

Closed EpicDima closed 11 months ago

EpicDima commented 11 months ago

I made a program that calls the updateTerminalSize method several times a second to get information about changing the size of the terminal. I expected the method to return true if the size of the terminal was changed, but it returns true anyway when the size of the terminal was received, if it didn't even change and it seems, at least for me, it's not always completely obvious and it would be great to clarify this point in the documentation of the method)