From: Rob Pierry Date: 2007-10-06T01:17:12+09:00 Subject: Re: Force IRB into interactive mode (to display prompt)? Rob Pierry wrote: > I'm implementing a front end for irb that involves running it in a > background process. I have it working such that I can collect input > from my program and write it to the redirected stdin of irb and then > read the output from redirected stdout, but it looks like when irb > detects that it isn't running in interactive mode it doesn't print a > prompt for some reason. > > I've tried setting conf.verbose = true, but that doesn't work. If I > don't redirect stdin, the prompt appears just fine. How can I force irb > to display the prompt, even if stdin is redirected? > > I'm using 1.8.5 on windows xp. May have solved my own problem. It looks like passing: --readline --prompt default to irb makes things work. When I start irb normally, I end up with readline for input and the prompt. When my app was starting the process, I ended up with the stdio input and no prompt. Thanks for all the replies. -- Posted via http://www.ruby-forum.com/.