[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] [RFC] selecting text by holding Shift
From: |
Benno Schulenberg |
Subject: |
Re: [Nano-devel] [RFC] selecting text by holding Shift |
Date: |
Thu, 31 Dec 2015 12:34:20 +0100 |
On Wed, Dec 30, 2015, at 16:47, David Niklas wrote:
> [...] you could remap the keys using terminfo, [...]
>
> My idea was that you could remap any of your keys to Mod[1-4] and then
> you'd have a whole new set of keys to play with in nano.
?? Nano uses ncurses, and as far as I know, ncurses only knows
about Shift and Alt and Control [1]. It doesn't know about Mod1
to Mod4 -- those things are specific to X.
But even if one could tell terminfo to produce a new set of key
codes for when say Mod2 is used, this doesn't help. What people
know from other applications is that /Shift/ can be used together
with the cursor movement keys to select text. That's what nano
should allow too. If it can't because the window manager or the
terminal emulator intercepts and eats those keys, we're stuffed.
[1] http://invisible-island.net/ncurses/ncurses.faq.html#modified_keys
Benno
--
http://www.fastmail.com - A no graphics, no pop-ups email service