nano

nano with my custom patches
git clone git://bsandro.tech/nano
Log | Files | Refs | README | LICENSE

commit 38c286c019f0d12be42ccb972c767b3d116a43e2
parent 56d842258c0dc6a95507ec2eac92575c729b34d7
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Thu, 26 Dec 2019 17:07:51 +0100

input: recognize the raw escape sequences for F13 to F16 on xterm too

For symmetry with Gnome Terminal, Konsole, and the Linux console.

This fixes https://savannah.gnu.org/bugs/?57482.

Diffstat:
Msrc/winio.c | 5+++++
1 file changed, 5 insertions(+), 0 deletions(-)

diff --git a/src/winio.c b/src/winio.c @@ -990,6 +990,11 @@ int convert_sequence(const int *seq, size_t length, int *consumed) return SHIFT_END; case 'H': /* Esc [ 1 ; 2 H == Shift-Home on xterm. */ return SHIFT_HOME; + case 'P': /* Esc [ 1 ; 2 P == F13 on xterm. */ + case 'Q': /* Esc [ 1 ; 2 Q == F14 on xterm. */ + case 'R': /* Esc [ 1 ; 2 R == F15 on xterm. */ + case 'S': /* Esc [ 1 ; 2 S == F16 on xterm. */ + return KEY_F(13 + seq[4] - 'P'); #endif } break;