From: Chad Perrin Date: 2006-01-05T06:23:53+09:00 Subject: Re: IRC like interface On Thu, Jan 05, 2006 at 01:44:24AM +0900, Juergen Fiedler wrote: > I figured I would use curses to keep input and output separated, > maintaining a separate cursor position for text that is typed in and for > text that comes in over a socket, for example. I have no idea, though, > how to get readline into the equation - and even without that, I am not > sure whether my approach would be really ideal. > Is there any easy to understand example code out there that would > illustrate how to program a simple chat client with a text based user > interface? I don't know of Ruby projects of that sort, off the top of my head, but there's an open source multiprotocol IM client called centericq that might at least give you some vague ideas. Without double-checking, I seem to recall that it was written in Perl, though for all I know right now it could be C. I know it uses ncurses, at least. -- Chad Perrin [ CCD CopyWrite | http://ccd.apotheon.org ] "A script is what you give the actors. A program is what you give the audience." - Larry Wall