Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re^4: Echoless terminal state after exiting Tk/Term::ReadLine event loop (Solved!)

by gnosti (Friar)
on Nov 01, 2009 at 20:18 UTC ( #804385=note: print w/ replies, xml ) Need Help??


in reply to Re^3: Echoless terminal state after exiting Tk/Term::ReadLine event loop (Solved!)
in thread Echoless terminal state after exiting Tk/Term::ReadLine event loop (Solved!)

Nice of you to suggest Glib, which appears to be useful for many functions besides events.

My needs at present are really pedaestrian--just a couple of basic watchers--only complicated because the app I'm working on has terminal-based and Tk-GUI interfaces. I pretty much have to use Tk::event for the Tk and Tk/ReadLine side. I have similar watchers written using Event.pm for the text interface, because I don't want to force Tk on people who might be console users. So it won't be both loops together. Just one of the other. It looks like AnyEvent will let me code identically to both Event and Tk::event backends, as well as to Glib or Wx if I decide I want to snazz up my GUI.


Comment on Re^4: Echoless terminal state after exiting Tk/Term::ReadLine event loop (Solved!)
Re^5: Echoless terminal state after exiting Tk/Term::ReadLine event loop (Solved!)
by zentara (Archbishop) on Nov 02, 2009 at 12:48 UTC
    .... just keep the dream going.... :-) .... i was toying with the idea of modeling thought after the concept of "living loops" that spawn new loops, etc... i figure i would have the master controlling loop written in c, but the spawned loops would be Perl for ease of writing. Keeping the master loop as c, would really simplify memory cleanup; and having Perl as the secondary loop language, would greatly simplify writing realtime code..... sort of self-writing code .... ok i have to stop.... this is getting too close to the tru.....

    I'm not really a human, but I play one on earth.
    Old Perl Programmer Haiku
      What sort of loops? Most male behavior can be simulated by three loops:
      - any breasts in sight? if so look - am i hungry? if so, go to fridge - any beer in the fridge? if so open one
        what sort of loops

        video processing loop, microphone processing, detecting current environmental conditions..... etc..etc....philosopher, know thyself ;-)

        ps: stop looking at my breasts....oops, your loop has a bug.... maybe it should have launched a sex-detection thread, before ordering the camera pods to look, start thread to report malfunction to creator....oh wait start homosexual guilt thread...oh no stop that one.....revert to judeo christian guilt thread....

        ....philosopher, know myself ... ;-)


        I'm not really a human, but I play one on earth.
        Old Perl Programmer Haiku

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (8)
As of 2014-11-28 20:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls