Randal L. Schwartz wrote:
>
> > "Tristram" == Tristram Nefzger <[EMAIL PROTECTED]> writes:
>
> Tristram> You can do
> Tristram> autoflush STDIN 1;
>
> This does nothing. "flushing" only makes sense on output handles.
Thanks Randal.
At least someone's awake.
/R
--
To unsubscribe, e-mail
> "Tristram" == Tristram Nefzger <[EMAIL PROTECTED]> writes:
Tristram> You can do
Tristram> autoflush STDIN 1;
This does nothing. "flushing" only makes sense on output handles.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> http://www.st
Ramprasad A Padmanabhan wrote:
> hello all,
> Quick question
> How do I flush stdin.
> I am writing an interactive console based script And I want that all
> inputs received before my prompt be flushed
>
> I looked at Term::Readkey but there seems to be no direct function
1 while defined ReadKey
You can do
autoflush STDIN 1;
However, output to the terminal is usually line buffered, see
http://www.perldoc.com/perl5.6/pod/perlvar.html
There is also an autoflush() function in IO::Handle, see
http://www.xav.com/perl/lib/IO/Handle.html
-tristram
--
To unsubscribe, e-mail: [EMAIL PROTECT
Ramprasad A Padmanabhan wrote:
>
> How do I flush stdin.
> I am writing an interactive console based script And I want
> that all inputs received before my prompt be flushed
>
> I looked at Term::Readkey but there seems to be no direct
> function
use IO::Handle; # At the head of your program
hello all,
Quick question
How do I flush stdin.
I am writing an interactive console based script And I want that all
inputs received before my prompt be flushed
I looked at Term::Readkey but there seems to be no direct function
Thanks
Ram
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additio