From: Michael Linfield Date: 2007-09-17T15:58:53+09:00 Subject: Re: Representing arrow keys in a string Arindam Goswami wrote: > I am using Ruby's Telnet class to establish a session with a remote > Linux machine to automate some remote administrative tasks. > > The problem I am facing is this- At one point I come across a menu, > where the arrow keys have to be used to select certain options. > > Is there any way to represent the arrow keys in the string that I am > sending to the remote machine? > > Do let me know if you have any other ideas/suggestions? instead of trying to make ruby know uve pushed an arrow key, think of what command pressing a certain key does, then try to execute that command in ruby code :) -- Posted via http://www.ruby-forum.com/.