From: Robin L. P. <rlp...@di...> - 2008-12-12 12:16:09
|
On Thu, Dec 11, 2008 at 03:53:11PM -0500, Bryan Bueter wrote: > > On Fri, Dec 05, 2008 at 08:52:46PM -0800, Robin Lee Powell wrote: > >> > >> I'm trying to send arrow keys to a curses app of mine. Rather > >> than distributing that app, here's an example using "mutt", which > >> is fairly common: > > > > No-one knows how to send arrows to curses apps in Expect? > > > > -Robin > > > > By my reckoning, you have your string incorrect. The following should be > arrow keys: > > $up = "\c[[A"; > $down = "\c[[B"; > $left = "\c[[D"; > $right = "\c[[C"; > > and not "\e[[B"; I wasn't sending \e[[B, I was sending \e[B. \e == \c[ (that is, ESC is the same as ^[; I actually use ctrl-[ at the keyboard most of the time to send ESC). I did explicitely try $exp->send("\c[[B");, though. No change (i.e., nothing happens). -Robin -- They say: "The first AIs will be built by the military as weapons." And I'm thinking: "Does it even occur to you to try for something other than the default outcome?" -- http://shorl.com/tydruhedufogre http://www.digitalkingdom.org/~rlpowell/ *** http://www.lojban.org/ |