in reply to nonblocking read with ncurses
I'm not sure if this would help you at all, and I haven't tested that code, so take it with a grain of salt.while(1) { my $chr = getch(); if($chr ne "\n") { push(@someary, $chr); } else { print "\n" last; } }
|
|---|