Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
Ruby
Pasting strings into irb
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Martin DeMello, post: 4461806"] There's a somewhat kludgy fix for this in CVS now (works but prints extraneous prompts to the screen), but it looks like I'm going to have to overhaul the input/output system to fully fix this and one or two other bugs. martin Patch follows: --- fxirb.rb.old 2005-03-09 00:50:46.000000000 +0530 +++ fxirb.rb 2005-03-09 00:50:08.000000000 +0530 @@ -276,9 +276,11 @@ def processCommandLine(cmd) #write("[#{cmd}]") - @input[1].puts cmd - @inputAdded = true - @irb.run + cmd.split(/\n/).each {|i| + @input[1].puts i + @inputAdded = true + @irb.run + } end [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
Ruby
Pasting strings into irb
Top