Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Multi-threaded console apps

Name: Anonymous 2008-04-19 17:57

What's the best way to do something like an IRC client where there's messages coming from the network you'll want to display without interrupting the user's input.

I'm using a toy language (MzScheme), so I don't have easy access to some curses library or ptys or anything like that...

Any ideas, or should I just give up and write a curses wrapper?  Can GNU Readline do anything like this?

Name: Anonymous 2008-04-19 18:32

>>26
You should use STM. Is the REPL that important? Haskell's HsPlugins could provide that. Using STM would do the operations atomically, meaning you could use one input port after all.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List