From: Gaspard Bucher Date: 2007-09-17T18:32:32+09:00 Subject: Re: Representing arrow keys in a string try irb: > STDIN.getc ... type arrow ... ... type return ... => 27 .. ESC > STDIN.getc => 91 .. [ > STDIN.getc => 67 .. C > STDIN.getc => 10 .. (return) My guess is : "\033[C" (\033 = octal for 27) Gaspard