From: Joel VanderWerf Date: 2002-06-17T13:58:57+09:00 Subject: Re: Embedding irb Gilles Filippini wrote: > > Bob X wrote: > > > > Into an FXRuby app would be even better. : ) > > That's what I'd like to do actually. > I think IRB should run in a separate thread. But then I don't know how > to redirect IRB's standard input, output and error. > Any help appreciated. > > _gilles. If you can figure out how to associate an input and output stream with a text editing window, then, IIUC, you can set readline to work on those streams, using rl_instream and rl_outstream: http://cnswww.cns.cwru.edu/~chet/readline/readline.html#SEC28 (Assuming you've set irb up to use readline.) I have no idea how to accomplish the first part, though. Maybe look at the source for a terminal emulator?