Real Software Forums
http://forums.realsoftware.com/

Sending arrow keys to interactive shell - HOW?
http://forums.realsoftware.com/viewtopic.php?f=1&t=48027
Page 1 of 1

Author:  eduo [ Fri May 31, 2013 4:55 am ]
Post subject:  Sending arrow keys to interactive shell - HOW?

I've been using shells in synchronous and asynchronous modes for some time now, but I find myself for the first time having to control one in interactive mode. All is well for text but for special/control characters I find myself out of the water.

I need to send arrow keys and the escape key, as well as come meta combinations to the application. The closest I can find is viewtopic.php?f=2&t=27787&hilit=shell+arrows which says to use chr() to send control characters, but then viewtopic.php?f=2&t=43161&hilit=shell+control matches my experience that this is ignored in OS X.

I can't find any other posts dealing with this but the words are so generic I may not be hitting the proper search gambit.

How do you send arrows keys to interactive shells in OS X?

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/