nano-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] add next/prev buffer and find next/prev shortcu


From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] add next/prev buffer and find next/prev shortcuts for non-utf8
Date: Mon, 19 Mar 2018 13:35:15 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Op 17-03-18 om 23:41 schreef Brand Huntsman:
> On Sat, 17 Mar 2018 15:40:46 +0100
> Benno Schulenberg <address@hidden> wrote:
>> because M-Left and M-Right don't work on a Linux console: they
>> switch terminals.
> 
> They work in rxvt-unicode but return codes nano doesn't understand.
> 
> up    ^[^[[A          1b 103
> down  ^[^[[B          1b 102
> left  ^[^[[D          1b 104
> right ^[^[[C          1b 105

It's ncurses that doesn't understand those codes: it ignores the first
escape.  Nano understands them just fine when using --rebindkeypad.

Except that nano understands them the iTerm2 way: M-Up does Home,
M-Down does End, and M-Left/M-Right do PrevWord/NextWord.

Benno

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]