Re: Ctrl+Up in muttrc. Not possible?

2012-01-14 Thread Cameron Simpson
On 13Jan2012 22:34, Christian Dysthe  wrote:
| On 01/14/12 at 02:40pm, Cameron Simpson wrote:
| > On 13Jan2012 17:20, Christian Dysthe  wrote:
| > | Is it possible to use the key combo Ctrl+Up (arrow up) in muttrc? I 
| > | have tried \C 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
  000  033   [   F  \n
  004
  [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 "[1;5A" as what to tell mutt.

Cheers,
-- 
Cameron Simpson  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


Re: Ctrl+Up in muttrc. Not possible?

2012-01-13 Thread Christian Dysthe
On 01/14/12 at 02:40pm, Cameron Simpson wrote:
> On 13Jan2012 17:20, Christian Dysthe  wrote:
> | Is it possible to use the key combo Ctrl+Up (arrow up) in muttrc? I 
> | have tried \C 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
> 
> Now type Ctrl-Up. Then press Return.
> What does od report?

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'.

> -- 
> Cameron Simpson  DoD#743
> http://www.cskk.ezoshosting.com/cs/
> 
> Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit
> patch to an 8 bit operating system originally coded for a 4 bit
> microprocessor, written by a 2 bit company.
> - Alex Satrapa 

-- 
//Christian Dysthe


Re: Ctrl+Up in muttrc. Not possible?

2012-01-13 Thread Cameron Simpson
On 13Jan2012 17:20, Christian Dysthe  wrote:
| Is it possible to use the key combo Ctrl+Up (arrow up) in muttrc? I 
| have tried \C 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

Now type Ctrl-Up. Then press Return.
What does od report?
-- 
Cameron Simpson  DoD#743
http://www.cskk.ezoshosting.com/cs/

Windows 95: n. 32 bit extensions and a graphical shell for a 16 bit
patch to an 8 bit operating system originally coded for a 4 bit
microprocessor, written by a 2 bit company.
- Alex Satrapa