Re: Fix for console mode Ruby

  • From: Jamal Mazrui <empower@xxxxxxxxx>
  • To: programmingblind@xxxxxxxxxxxxx
  • Date: Fri, 01 Oct 2010 06:55:57 -0400

I did not find Ruby script files, only ruby.jcf, the contents of which I am pasting below my name. Deleting or renaming this file does solve the problem.


OpenBook.* is a full script set that does include the same sleep setting in its .jcf. As far as I know, OpenBook is not written Ruby, so I do not understand the presence of ruby.jcf in the JAWS directory of FS-supplied settings.

Jamal

[Options]
SleepMode=2



On 9/30/2010 10:32 PM, Ken Perry wrote:
You know you might even be able to fix this by removing the ruby scripts if
you need to.  Jaws does not lock up I am betting they  used to have to
silent Jaws when you run ruby open book.

Ken

-----Original Message-----
From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Jamal Mazrui
Sent: Thursday, September 30, 2010 8:24 AM
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
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at
//www.freelists.org/list/programmingblind

__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: