Alt+Home and Alt+End not recognized on urxvt
Benno Schulenberg <[email protected]>
| Newsgroups | gmane.editors.nano.devel |
|---|---|
| Message-ID | <[email protected]> |
Hello Sébastien,
> Here is the result:
>
> Sequence of hex codes: 1b 5b 37 fe
> Sequence of hex codes: 1b 5b 38 fe
Wow. Weird non-ASCII 0xFE code.
After installing rxvt-unicode (and making a symlink for the
needed terminfo entry), running the same recipe here gives:
Sequence of hex codes: 1b 1b 5b 37 7e
Sequence of hex codes: 1b 1b 5b 38 7e
Double escapes. Strange. This is with urxvt v9.30.
Anyway, does applying the attached patch (with -p1) to nano-8.0
solve the issue for you?
>> Also, what terminal are you using
>
> urxvt
Then maybe https://nano-editor.org/dist/latest/faq.html#4.2
needs to be extended with:
URxvt.keysym.M-Home: \033[1;3H
URxvt.keysym.M-End: \033[1;3F
>> and what is TERM set to?
>
> rxvt-unicode-256color
My terminfo does not have a description for that terminal, only for
rxvt-256color. Where does that rxvt-unicode-256color come from?
Benno
recognize-two-escape-sequence-with-0xFE.patch
(text/x-patch, 750 B)
diff --git a/src/winio.c b/src/winio.c index 81c9648c..43231179 100644 --- a/src/winio.c +++ b/src/winio.c @@ -823,6 +823,8 @@ int convert_CSI_sequence(const int *seq, size_t length, int *consumed) else if (length > 1 && seq[1] == '^') return CONTROL_HOME; #ifndef NANO_TINY + else if (length > 1 && seq[1] == 0xFE) + return ALT_HOME; else if (length > 1 && seq[1] == '@') return shiftcontrolhome; #endif @@ -838,6 +840,8 @@ int convert_CSI_sequence(const int *seq, size_t length, int *consumed) else if (length > 1 && seq[1] == '^') return CONTROL_END; #ifndef NANO_TINY + else if (length > 1 && seq[1] == 0xFE) + return ALT_END; else if (length > 1 && seq[1] == '@') return shiftcontrolend; #endif
OpenPGP_signature.asc
(application/pgp-signature, 840 B)
-----BEGIN PGP SIGNATURE----- wsF5BAABCAAjFiEEFo5vQpe/16ea/USWUUu+Lrjhlh8FAmY470AFAwAAAAAACgkQUUu+Lrjhlh9m 8RAAq1w93NJIJisM7rgClB8E8xhgcrmuvvcI/Y15wIRkbsBWuO0GAWZuz+dFh5xhH539+8kf9Hov 5YOhUx4VMqsTTXqf5TdBXTCUHbjBYTktRGWEJi+jiEoPqhfsK5J1ETPrd14iy1qvRhWJTKNXoTg+ EQE9njpJCI44Xkb6fUI1aiGsliNMD+Rmmzc/HcyWdS6d3tXz08nJS1SRwXV+QiPNCW4R+HNuRi+V yTC7kD+PgmEaOJoIgiDMO9CmqwPqguHdoaEgqWrpHT9uJaqXxj7FFXFhEhIL42mAVRbezeTLZdR2 ti/JBzVxvHpwJvWoiCDIjJdpeP4CcHFkID2EIFQmlQo4ZYyuo3SC/rgs0W4BjO9F1jYQiBvrW9gF ayAUb7NLXNlZJc9qsjF+QB0W46r+eA1wkTIKeOddRgUvzIAuHW819H0wXE6fXvvN8UEb6CR8Tw+L NpJUpJssfnUznlcmeW81j+aXT7x6VEIxwtViHxwH2gmtWESD8SfZXK56W6Gim19ySHeMzQR3oOBh LZdjQ3RkcAx3fH6hETy81Z3fbKED1L2CAQMXu1P/gPCWXjqWRcF4Nb5lm6S4RBpbhthsLwvZGNMY Iik9OFu7d3y1cglzhR/sJjdz48A3d1+TH/vhdwlIaTNeo4jrqUu/EVoM7TxhqkKMfxZeLIXPWL3m 6dE= =PcyG -----END PGP SIGNATURE-----