On 13Jan2012 22:34, Christian Dysthe <cdys...@gmail.com> wrote:
| On 01/14/12 at 02:40pm, Cameron Simpson wrote:
| > On 13Jan2012 17:20, Christian Dysthe <cdys...@gmail.com> wrote:
| > | Is it possible to use the key combo Ctrl+Up (arrow up) in muttrc? I 
| > | have tried \C<up> but it doesn't seem to work.
| > 
| > Only if your terminal emulator passes it through to the app.
| > Get a plain shell and type:
| >   od -c
[...]
| I typed 'od -c' in the terminal I'm using (Sakura), then Ctrl-Up and 
| pressed return. The only thing I got in the terminal was '^[[1;5A'.

Urgh. My fault. Press Return and then type Ctrl-D (EOF, to indicate end
of input to "od"). Example from a Mac iTerm:

  [hg/wiringdb-fleet]fleet*1> od -c
  ^[[F
  0000000  033   [   F  \n                                                
  0000004
  [hg/wiringdb-fleet]fleet*> 

That's a right arrow. Anyway, it seems to me that your terminal emulator
sends "ESC [ 1 ; 5 A" when you press Ctrl-Up, so that's what you need to
remap.

A bit of poking at:
  http://www.mutt.org/doc/devel/manual.html#macro
and
  http://www.mutt.org/doc/devel/manual.html#bind
suggests "<esc>[1;5A" as what to tell mutt.

Cheers,
-- 
Cameron Simpson <c...@zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/

They keep talking about drafting a Constitution for Iraq. Why don't
we just give them ours? It was written by a lot of really smart guys,
it's worked for over 200 years and we're not using it anymore.
- Juan Cole, 08aug2005

Reply via email to