It is currently not possible to substitute $stdout or
$stdin with a StringIO when using the Readline library
($stderr seems to be fine) due to a T_FILE check in
Can someone come up with a reason why this might be
required before I change it and submit a patch?
While I am at it, I suppose I will try to provide an
additional method for getting the full line of input.
Posted via http://www.ruby-forum.com/.