Found bug on windows working with ratatui, with everything default, no drawing, just waiting for event.
When BOTH of terminal width & height are changed to 0 (like on image)
there seems to be record.size.y == -1, because record.size.y as u16 + 1 panics with
thread 'main' panicked at C:\...\crossterm-0.28.1\src\event\source\windows.rs:70:33:
attempt to add with overflow
-1i16 as u16 == u16::MAX
u16::MAX + 1 // panics
used as i32 for -1 to become 0 (represents size of terminal better than 65535) and i16::MAX (32767) to become 32768
Found bug on windows working with ratatui, with everything default, no drawing, just waiting for event.
When BOTH of terminal width & height are changed to 0 (like on image)
there seems to be
record.size.y == -1
, becauserecord.size.y as u16 + 1
panics withused
as i32
for -1 to become 0 (represents size of terminal better than 65535) and i16::MAX (32767) to become 32768