# Windows prompt, how to write?

**URL:** <https://www.ruby-forum.com/t/windows-prompt-how-to-write/137088>\
**Category:** Ruby\
**Created:** [May 8, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/windows-prompt-how-to-write/137088 "2008-05-08T21:15:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![globalrev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f08c70/32.png) [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Post date:** [May 8, 2008, 9:15pm UTC](https://www.ruby-forum.com/t/windows-prompt-how-to-write/137088/1 "2008-05-08T21:15:55Z")

</div>

using the ruby prompt in windows, how do i write []? altgr+8 doesnt  
work…

---

<div class="post-metadata">

**Author:** ![globalrev](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f08c70/32.png) [@globalrev](https://www.ruby-forum.com/u/globalrev)\
**Post date:** [May 8, 2008, 9:25pm UTC](https://www.ruby-forum.com/t/windows-prompt-how-to-write/137088/2 "2008-05-08T21:25:54Z")

</div>

On 8 mayo, 16:11, globalrev [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> using the ruby prompt in windows, how do i write []? altgr+8 doesnt  
> work…

What keyboard distribution you have?

Euro keybs (spanish, french and other from oriental europe) requires  
a .inputrc file that maps AltGr keys with the correct escape code.

Download this file:

[http://rubyinstaller.rubyforge.org/svn/trunk/installer-win2/local-sources/Patch-186/bat-files/inputrc.euro](http://rubyinstaller.rubyforge.org/svn/trunk/installer-win2/local-sources/Patch-186/bat-files/inputrc.euro)

And rename it to .inputrc

Place it where you have HOME defined, and IRB should start accepting  
it.

HTH,
