From: Roger Pack Date: 2010-08-26T01:09:21+09:00 Subject: Re: Simulating a TTY? > I'm trying to write something like a terminal emulator for use inside a > wxRuby GUI as a debugging console in the current context or just as a > possibility to issue some fast commands rather than clicking around. I > have to problems with this: > > 1. I wanted to use IRB to just allow the user to enter Ruby code in the > current project context, but IRB seems to only read from STDIN. I didn't > find a possibility to direct IRB somewhere else. So, is there one or can > I give up on this? A few related projects that might help: live console [1] monkey patches irb to allow it to receive from a socket (probably not quite what you wanted...) as does fxri [1] http://github.com/pete/live-console/blob/master/lib/live_console.rb redcar also has a "REPL" which "is like" IRB (without ever using irb though). GL. -r -- Posted via http://www.ruby-forum.com/.