Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer

Re^2: Curses and Sockets

by Withigo (Friar)
on Oct 09, 2007 at 07:29 UTC ( #643639=note: print w/ replies, xml ) Need Help??

in reply to Re: Curses and Sockets
in thread Curses and Sockets

Just in case it's not so clear how that link demonstrates a possible solution, Curses uses STDIN, STDOUT, STDERR. So in a BEGIN block before initializing Curses, create a new IO pty and then redirect the standard file handles to/from it like in the example script in the link. Then Curses is connected to the pty.
Hope it works!

Comment on Re^2: Curses and Sockets
Replies are listed 'Best First'.
Re^3: Curses and Sockets
by quixadhal (Novice) on Oct 09, 2007 at 18:23 UTC
    Hmmm, sounds promising!

    I suspect I'll have to switch to a multi-threading model so each client socket can have a separate thread and thus keep its own copy of Curses to play with.

    Thanks again!

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2015-10-04 07:35 GMT
Find Nodes?
    Voting Booth?

    Does Humor Belong in Programming?

    Results (99 votes), past polls