Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw

Re: Curses and Sockets

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

in reply to Curses and Sockets

3 minutes of searching comp.lang.perl.misc came up with this solution
Good luck!

Replies are listed 'Best First'.
Re^2: Curses and Sockets
by Withigo (Friar) on Oct 09, 2007 at 07:29 UTC
    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!
      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://643607]
[stevieb]: I have learned that my daughter has significant brain injury, so that's affecting my decisions. Don't know who to reach out to. I just want to vent. I am honestly lost. It's something I can't code around.
[stevieb]: I am infuriated at the same time I am hopeless. It appears there are approaches to 'fix' things, but, you know..,

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2017-02-25 04:03 GMT
Find Nodes?
    Voting Booth?
    Before electricity was invented, what was the Electric Eel called?

    Results (365 votes). Check out past polls.