Closed enthus1ast closed 2 years ago
For windows (WINDOW_BUFFER_SIZE_EVENT): https://docs.microsoft.com/en-us/windows/console/reading-input-buffer-events
For linux (SIGWINCH)
As a fallback:
var oldDimenions = terminalSize() tb = newTerminalBuffer() if oldDimenions != terminalSize(): tb = newTerminalBuffer(terminalSize().w, terminalSize().h) oldDimenions = terminalSize()
PRs are welcome :) I just always redraw in my apps in every main loop iteration, that works too.
Closing due to inactivity/lack of interest.
For windows (WINDOW_BUFFER_SIZE_EVENT): https://docs.microsoft.com/en-us/windows/console/reading-input-buffer-events
For linux (SIGWINCH)
As a fallback: