Wild Man's Shore

Saturday, January 21, 2006

Problems with Finnish Keyboard and Ruby's irb

I ran into a problem with Ruby's interactive shell, irb, on Windows XP: it did not accept alt-gr generated characters with the Finnish keyboard, which prevents you from typing characters such as [ or @. The solution was found here:

Basically create the following file, .inputrc, in your home directory(C:\Documents and Settings\<username>):

"\M-[": "["
"\M-]": "]"
"\M-{": "{"
"\M-}": "}"
"\M-\\": "\\"
"\M-|": "|"
"\M-@": "@"
"\M-~": "~"
"\M-$": "$"

Then add the following line to the start of <ruby-dist>\bin\irb.bat:

@echo off

and it should work fine. A real showstopper, though, which I haven't seen in other tools (such as Python's shell).


At 11:03 AM, Blogger Flim Flam Man said...

There is something that is missing here. Remember good credit is helpful and Bad credit repair mortgage loan fix repair credit FICO bankruptcy foreclosure equity equifax experian TU Transunion dispute That might improve the interest rate and again lower payments are definitely preferred.

At 9:46 PM, Blogger mephisto said...

Thanks, it worked. I've avoided IRB until now, just because @$[{ and so on didn't work (Norwegian keyboard here.).
But today I installed Cygwin in order to get the RubyInline to work, and didn't have much choice. Thanks again.

At 1:10 PM, Blogger janprill said...

Thanks for this tip. It made ruby script/console finally working like expected on a german keyboard. A little sidenote: If your rails project resides on another partition than your Homepath (or if you want to use irb from another partition) the %HOMEPATH% environment var won't work. I had to reference the explicit path (e.g. d:\dokumente und einstellungen\my_profile


At 7:33 AM, Blogger wolfgang said...

Thanks a lot for your help!
Swiss german keyboard ....



Post a Comment

<< Home