nano

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

commit 5be94a3bbea3b0cecb0f77bf1aba07f1eef009c5
parent 518a2b4c45b063b142e1fed759145958d22fcae9
Author: Benno Schulenberg <bensberg@telfort.nl>
Date:   Tue, 30 Oct 2018 19:01:39 +0100

debug: report for which modified editing keys ncurses has no keycode

Diffstat:
Msrc/nano.c | 7+++++--
1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/src/nano.c b/src/nano.c @@ -1531,9 +1531,12 @@ int get_keycode(const char *keyname, const int standard) if (keyvalue != 0 && keyvalue != (char *)-1 && key_defined(keyvalue)) return key_defined(keyvalue); - else #endif - return standard; +#ifdef DEBUG + if (!ISSET(REBIND_KEYPAD)) + fprintf(stderr, "Using fallback keycode for %s\n", keyname); +#endif + return standard; } #ifdef ENABLE_LINENUMBERS