in reply to
Non blocking read from the console
I don't get where the non blocking part is ...
Comment on
Re: Non blocking read from the console
Replies are listed 'Best First'.
Re^2: Non blocking read from the console
by
soonix
(Chancellor)
on Oct 18, 2024 at 20:39 UTC
the ReadKey(-1) (and the underlying system call) is non-blocking. At least OP doesn't hog the CPU as in the SYNOPSIS of
Term::ReadKey
, but uses
usleep
during the active waiting…
[reply]
[d/l]
In Section
Seekers of Perl Wisdom