From: Dave Burt Date: 2006-07-21T00:25:05+09:00 Subject: Re: irb and readline Phrogz wrote: > Dave Burt wrote: >> On Windows, under the cmd.exe shell, you don't need readline for >> history, cmd.exe provides it by default. My preference is to run >> irb --noreadline. > > Nice, that solves it for me, too. > > Any .bat geeks able to tell me how to modify the irb.bat file that > comes with the one-click installer so that this option is always > specified? You can either add the --noreadline parameter to the ruby calls at the top of irb.bat like so: @echo off if not "%~f0" == "~f0" goto WinNT ruby -Sx "%0" --noreadline %1 %2 %3 %4 %5 %6 %7 %8 %9 goto endofruby :WinNT "%~d0%~p0ruby" -x "%~f0" --noreadline %* goto endofruby ... or you can insert it into ARGV in the Ruby section: ... require "irb" ARGV.unshift "--noreadline" ... My favourite feature of disabling readline is that you can right-click on the console window to access the Mark, Copy and Paste operations. Cheers, Dave