go-prompt
go-prompt copied to clipboard
Catch a signal that window size is changed on Windows
I wrote that "windows support is almost perfect" in change log of v0.2.1 but I noticed a critical bug a while ago :(
Current implementation of go-prompt cannot catch signal for updating window size on Windows. So if you change a size of terminal emulator, the layout will be broken.
On Windows, ReadConsoleInput and WINDOW_BUFFER_SIZE_EVENT can be used for receiving window size change events.
This problem will be fixed at #83.
Looking forward to this fix.