# Irb cursor navigation

**URL:** <https://rubytalk.org/t/irb-cursor-navigation/24567>\
**Category:** ruby-talk\
**Created:** [2 February 2006 16:29 UTC](https://rubytalk.org/t/irb-cursor-navigation/24567 "2006-02-02T16:29:26Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Matt\_Maycock](https://avatars.discourse-cdn.com/v4/letter/m/e9a140/32.png) [@Matt\_Maycock](https://rubytalk.org/u/Matt_Maycock)\
**Post date:** [2 February 2006 16:29 UTC](https://rubytalk.org/t/irb-cursor-navigation/24567/1 "2006-02-02T16:29:26Z")

</div>

Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or down  
results in ^[[D, ^[[A, etc instead of the intended effect. Is there a fix?

Thank you,

~Matthew Maycock

> **···**
>
> --  
> There's no word in the English language for what you do to a dead thing to  
> make it stop chasing you.

---

<div class="post-metadata">

**Author:** ![Sasa\_Ebach](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@Sasa\_Ebach](https://rubytalk.org/u/Sasa_Ebach)\
**Post date:** [2 February 2006 16:39 UTC](https://rubytalk.org/t/irb-cursor-navigation/24567/2 "2006-02-02T16:39:16Z")

</div>

Matt Maycock wrote:

> Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or down  
> results in ^[[D, ^[[A, etc instead of the intended effect. Is there a fix?

Great, I have the same problem. Was just gonna ask myself. I have it on RedHat Linux 7.3.

-Sascha Ebach

---

<div class="post-metadata">

**Author:** ![Kelly\_Norton](https://avatars.discourse-cdn.com/v4/letter/k/e56c9b/32.png) [@Kelly\_Norton](https://rubytalk.org/u/Kelly_Norton)\
**Post date:** [2 February 2006 17:05 UTC](https://rubytalk.org/t/irb-cursor-navigation/24567/3 "2006-02-02T17:05:01Z")

</div>

On OS X 10.4, you are running into Apple's long standing readline problems. There is a step-by-step fix described here:

[http://tech.rufy.com/entry/46](http://tech.rufy.com/entry/46)

However, there are other problems with Apple's ruby, so you may seriously consider compiling your own.

/kel

> **···**
>
> On Feb 2, 2006, at 11:29 AM, Matt Maycock wrote:
> 
> > Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or down  
> > results in ^[[D, ^[[A, etc instead of the intended effect. Is there a fix?
> > 
> > Thank you,
> > 
> > ~Matthew Maycock
> > 
> > --  
> > There's no word in the English language for what you do to a dead thing to  
> > make it stop chasing you.

---

<div class="post-metadata">

**Author:** ![Tanner\_Burson](https://avatars.discourse-cdn.com/v4/letter/t/4bbf92/32.png) [@Tanner\_Burson](https://rubytalk.org/u/Tanner_Burson)\
**Post date:** [2 February 2006 16:59 UTC](https://rubytalk.org/t/irb-cursor-navigation/24567/4 "2006-02-02T16:59:25Z")

</div>

> Matt Maycock wrote:  
> \> Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or  
> down  
> \> results in ^[[D, ^[[A, etc instead of the intended effect. Is there a  
> fix?
> 
> Great, I have the same problem. Was just gonna ask myself. I have it on  
> RedHat Linux 7.3.

It's most likely a lack of the readline library being installed. If you're  
using the built in OSX ruby install it's recommended that you build your  
own. Search this list for a LOT more information regarding ruby and  
readline.

-Sascha Ebach

> **···**
>
> On 2/2/06, Sascha Ebach \<se@digitale-wertschoepfung.de\> wrote:
> 
> > 
> 
> --  
> ===Tanner Burson===  
> tanner.burson@gmail.com  
> [http://tannerburson.com](http://tannerburson.com) \<---Might even work one day...

---

<div class="post-metadata">

**Author:** ![James\_H](https://avatars.discourse-cdn.com/v4/letter/j/9de053/32.png) [@James\_H](https://rubytalk.org/u/James_H)\
**Post date:** [2 February 2006 17:08 UTC](https://rubytalk.org/t/irb-cursor-navigation/24567/5 "2006-02-02T17:08:17Z")

</div>

I don't have this problem on my OS X 10.4 box. I compiled and installed my own copy of Ruby following these instructions \>\> [Dan Benjamin](http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger) Make sure you read the part about /usr/local linked on that page.

James

> **···**
>
> On 2006-02-02 11:59:25 -0500, Tanner Burson \<tanner.burson@gmail.com\> said:
> 
> > On 2/2/06, Sascha Ebach \<se@digitale-wertschoepfung.de\> wrote:
> > 
> > > Matt Maycock wrote:
> > > 
> > > > Whenever I use irb on my OS X 10.4 box, pressing left, right, up, or
> > > 
> > > down
> > > 
> > > > results in ^[[D, ^[[A, etc instead of the intended effect. Is there a
> > > 
> > > fix?
> > > 
> > > Great, I have the same problem. Was just gonna ask myself. I have it on  
> > > RedHat Linux 7.3.
> > 
> > It's most likely a lack of the readline library being installed. If you're  
> > using the built in OSX ruby install it's recommended that you build your  
> > own. Search this list for a LOT more information regarding ruby and  
> > readline.
> > 
> > -Sascha Ebach
