In the terminal there seems to be problem with the arrow keys.
When pressing arrow_left then I see ^[[D in the terminal.
pressing CTRL-A doesn't work neither.
I suspect the escape sequences isn't being read correct.
* Simon Strandgaard <neoneye@gmail.com> [0317 21:17]:
In the terminal there seems to be problem with the arrow keys.
When pressing arrow_left then I see ^[[D in the terminal.
pressing CTRL-A doesn't work neither.
I suspect the escape sequences isn't being read correct.
What is the solution for this?
Install the readline extension - see list archives.
···
--
'I should have been a plumber.'
-- Albert Einstein
Rasputin :: Jack of All Trades - Master of Nuns
In the terminal there seems to be problem with the arrow keys.
When pressing arrow_left then I see ^[[D in the terminal.
pressing CTRL-A doesn't work neither.
I suspect the escape sequences isn't being read correct.
I suspect Ruby did not link against the readline library when installing. I always install GNU Readline on OX X before I build Ruby. I can use the arrow keys in irb normally, but my .irbrc file contains:
I'm completely guessing here and way out of my area though, so maybe on of the gurus will have better advice...
Good luck.
James Edward Gray II
···
On Mar 8, 2005, at 3:17 PM, Simon Strandgaard wrote:
In the terminal there seems to be problem with the arrow keys.
When pressing arrow_left then I see ^[[D in the terminal.
pressing CTRL-A doesn't work neither.
I suspect the escape sequences isn't being read correct.
> btw: I am learning about Cocoa on mac and figured it would be
> interesting to write a GUI frontend for IRB. Something like this:
> http://aeditor.rubyforge.org/data/mac_irb1.png
>
> I wonder how I can establish communication with irb.
> I am in paticular curious to how/if the freeride team has done it.
I just realized that there exists a binary installer for ruby 1.8.2, that has
readline with it. The reason why I overlooked it the first time, was
because I didn't knew what a .dmg file was.
I will try it out.
···
On Wed, 9 Mar 2005 06:26:23 +0900, James Edward Gray II <james@grayproductions.net> wrote:
On Mar 8, 2005, at 3:17 PM, Simon Strandgaard wrote:
> In the terminal there seems to be problem with the arrow keys.
> When pressing arrow_left then I see ^[[D in the terminal.
> pressing CTRL-A doesn't work neither.
> I suspect the escape sequences isn't being read correct.
>
> What is the solution for this?
I suspect Ruby did not link against the readline library when
installing. I always install GNU Readline on OX X before I build Ruby.
I can use the arrow keys in irb normally, but my .irbrc file contains: