Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Exiting main loop in Win32::Console

by wrog (Friar)
on May 17, 2015 at 19:18 UTC ( [id://1126909]=note: print w/replies, xml ) Need Help??


in reply to Exiting main loop in Win32::Console

Have you tried using ->PeekInput or ->GetEvents ?

(as you've noticed, you need something that does not block the way ->InputChar does.)

And it's not that simple; you are, after all, asking it to do two things at the same time (print stuff and listen for keyboard input).

(never mind that most likely what you really want is something that's event driven, i.e., listening for both keyboard input and events from whatever it is you're monitoring that's going to cause the printed text to change...)

Replies are listed 'Best First'.
Re^2: Exiting main loop in Win32::Console
by Anonymous Monk on May 17, 2015 at 19:36 UTC
    Ah, that's the stuff was looking for!... GetEvents works very nicely!

    you are true perl monk... thank you!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1126909]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (3)
As of 2026-02-07 13:18 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.