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; } }
In reply to Re: nonblocking read with ncurses
by BastardOperator
in thread nonblocking read with ncurses
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |