Key-mapping

G

Gunnar

Hi all
I know this is not a Ruby thing, but I try anyhow.
When I'm using irb on my Linux system the cursor keypad works great, ie
the leftarrow backspace and uparrow gives me the previous line.
Using my iMac the keypad only results in an escape sequence (^[[A for
uparrow, ^[[C for leftarrow etc). I have not been able to find any
key-mapping in irb, or in the terminal setup.
All help appreciated
Gunnar
 
G

Gunnar

Ryan
Thank you very much.
Went to article, did what it said ->everything works great.
Best regards
Gunnar
Ryan said:
That functionality is provided by the readline library, which I don't
think is setup with Ruby by default on Mac OS X (or maybe it is but
you just need to enable that option on irb.) But either way the Ruby
provided with Mac OS X is broken in various ways. Here is information
on how to properly set up Ruby on a Mac:

http://hivelogic.com/articles/2005/12/01/ruby_rails_lighttpd_mysql_tiger

Ryan

Hi all
I know this is not a Ruby thing, but I try anyhow.
When I'm using irb on my Linux system the cursor keypad works great, ie
the leftarrow backspace and uparrow gives me the previous line.
Using my iMac the keypad only results in an escape sequence (^[[A for
uparrow, ^[[C for leftarrow etc). I have not been able to find any
key-mapping in irb, or in the terminal setup.
All help appreciated
Gunnar
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,201
Messages
2,571,048
Members
47,651
Latest member
VeraPiw932

Latest Threads

Top