Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
As always, thank you for your time.
my $StdIn = new Win32::Console( STD_INPUT_HANDLE ); $StdIn->Mode( ENABLE_PROCESSED_INPUT); my $console = new Win32::Console(); $console->Cls( $FG_WHITE | $BG_GREEN ); while (1) { my $x = rand(10); $console->WriteChar($x,10,12); $console->Display(); $console->Cursor(0,22); my $Data = $StdIn->InputChar(1) if (lc $Data eq "q") { exit; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Exiting main loop in Win32::Console
by wrog (Friar) on May 17, 2015 at 19:18 UTC | |
by Anonymous Monk on May 17, 2015 at 19:36 UTC | |
|
Re: Exiting main loop in Win32::Console
by BillKSmith (Monsignor) on May 18, 2015 at 11:31 UTC |