This only happens if it catches a character during the idle loop
which is the only way to catch Curses RESIZE signal. But a stray
"normal" character might get through as well.
}
my $ch = $bot->getch(); # this is here just to catch RESIZE events
if (defined $ch) {
}
my $ch = $bot->getch(); # this is here just to catch RESIZE events
if (defined $ch) {
- if ($ch == KEY_RESIZE) {
+ if ($ch =~ /^\d+$/ && $ch == KEY_RESIZE) {
doresize();
} else {
rec_stdin($ch) unless $ch == '-1';
doresize();
} else {
rec_stdin($ch) unless $ch == '-1';