[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: Simply a bug ?

Lionel

1/3/2006 1:33:00 PM

Kane wrote:
> gabriele renzi wrote:
>> look in the archives for problems with irb and readline on win32,
>> basically you need to set up a proper .inputrc file or run irb with
>> --noreadline.
>> Sorry I don't have some urls at hand.
>
> Really, --noreadline fix the problerm. It's stange but its walk.
>
> Thanks !

Hi, here is the solution (at least for french keyboards) :

1. create a file called .inputrc containing :
"\M-[": "["
"\M-]": "]"
"\M-{": "{"
"\M-}": "}"
"\M-\\": "\\"
"\M-|": "|"
"\M-@": "@"
"\M-~": "~"

I personally put this file at c:\Documents and Settings\Lionel\.inputrc

2. set an environment variable INPUTRC pointing to the full path of
inputrc. In my case :

INPUTRC=%HOMEPATH%\.inputrc

You can access to the environment variables under Windows XP in the
Advanced tab of the System control panel. You can also declare it for
your console session running by typing
SET INPUTRC=%HOMEPATH%\.inputrc

Then, readline behaves correctly and accepts these important characters.

Cheers

--
Posted via http://www.ruby-....