nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] bindings: no longer bind F13 and F14 and F15


From: Brand Huntsman
Subject: Re: [Nano-devel] [PATCH] bindings: no longer bind F13 and F14 and F15
Date: Thu, 18 Oct 2018 16:07:45 -0600

On Thu, 18 Oct 2018 20:59:17 +0200
Benno Schulenberg <address@hidden> wrote:

> The bindings for F1 to F12 are there for compatabililty with Pico.
> But Pico does not know anything about F13 to F16; for unknown reasons
> they were added to nano.  They seem hardly useful: normal keyboards
> do not have the F13 to F16 keys

I agree. I also think F13-16 support should be replaced with Shift F1-12 
support in winio.c. I have a patch that refactors bind key parsing to allow 
combinations of the meta, shift and control modifiers.

A couple lines in keycode_from_string(), support in winio.c (hardest part) and 
F1-12 could use any modifier combo supported by the terminal. In ncurses, 
S-F1-12 is F13-24 and ^F1-12 is F25-36. I don't know about other terminals, but 
urxvt produces unique sequences for F*, ^F*, S-F*, S-^F*, M-F*, M-S-F* and 
M-S-^F*.




reply via email to

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