Re: Fix for console mode Ruby
- From: Jamal Mazrui <empower@xxxxxxxxx>
- To: programmingblind@xxxxxxxxxxxxx
- Date: Thu, 30 Sep 2010 09:50:13 -0400
Thanks. That sounds like the legacy 1.8.6 version for Windows. I
previously used that (e.g., for TextPal), but am trying to use newer
versions of the interpreter now -- at least 1.8.7. I appreciate the
other tips. JRuby.exe does not have the same lockup problem, but the
startup time for the JVM can be slow when running a script, and JRuby
does not work with Ruby gems that use Windows DLLs, understandably.
Jamal
On 9/30/2010 8:55 AM, DaShiell, Jude T. CIV NAVAIR 1490, 1, 26 wrote:
I use http://www.ruby-lang.org's rubyinstaller.exe package and found
running start command with ruby first, then typing ruby filename.rb
didn't run me into any lock ups with jaws 10.x. We're supposed to be
able to run irb "filename.rb" and be able to have irb execute script
files for us too. It's recommended to set RUBYOPTS="-w" so as to get
any warnings the ruby interpreter may have as well.
-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
Sent: Thursday, September 30, 2010 8:24
To: programmingblind
Subject: Fix for console mode Ruby
Ruby for Windows
http://RubyInstaller.org
has a console and GUI mode version of the interpreter, ruby.exe and
rubyw.exe, respectively. Due to an apparent JAWS bug, the console
version locks up when run with JAWS at a command prompt. This does not
happen with Window-Eyes or NVDA.
I found a work-around by running a batch file instead of the executable
directly. It is called rubyc.bat (a suffix of c as opposed to w). The
content is simply the following:
@echo off
ruby.exe %*
You can copy rubyc.bat to the same bin subdirectory where ruby.exe,
rubyw.exe, irb.bat, and gem.bat reside. I have now also included the
file in the archive of the Ruby fruit basket program
http://EmpowermentZone.com/rb_fruit.zip
If anyone figures out a way to fix JAWS so this is not necessary, I am
still interested in that, too.
Jamal
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
__________
View the list's information and change your settings at
http://www.freelists.org/list/programmingblind
Other related posts: