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:22

>>14
bits and shit
What is that?

I wrote a simple multithreaded IRC server in Haskell: http://monkeyboy.td.org.uit.no/~cin/code/hircd/

You can use hsplugins for a REPL. Or you could link to the greasespot Javascript library and script your IRC client with Javascript.

But, if you really want to use Scheme, threading and networking is easy, I've also written an IRCd in Scheme, too. Finding an ncurses wrapper would be your biggest issue. If you can't find one, you can probably write a simple ncurses wrapper library in C and control it from Scheme in a more high-level fashion.

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