Making it easy to see what codes a key stroke produces when debugging.
git-svn-id: svn://svn.savannah.gnu.org/nano/trunk/nano@5245 35c25a1d-7b9e-4130-9fde-d3aeb78583b8master
parent
87e963a2c7
commit
e00b3e8587
|
@ -1,3 +1,7 @@
|
||||||
|
2015-06-11 Benno Schulenberg <bensberg@justemail.net>
|
||||||
|
* src/winio.c (get_key_buffer): Add some debugging code to make it
|
||||||
|
easy to see what codes a key stroke produces.
|
||||||
|
|
||||||
2015-06-07 Benno Schulenberg <bensberg@justemail.net>
|
2015-06-07 Benno Schulenberg <bensberg@justemail.net>
|
||||||
* doc/texinfo/nano.texi: Show the node with the command-line options
|
* doc/texinfo/nano.texi: Show the node with the command-line options
|
||||||
in the main menu, to make it easy to find.
|
in the main menu, to make it easy to find.
|
||||||
|
|
|
@ -181,7 +181,13 @@ void get_key_buffer(WINDOW *win)
|
||||||
nodelay(win, FALSE);
|
nodelay(win, FALSE);
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
fprintf(stderr, "get_key_buffer(): key_buffer_len = %lu\n", (unsigned long)key_buffer_len);
|
{
|
||||||
|
size_t i;
|
||||||
|
fprintf(stderr, "get_key_buffer(): the series of codes:");
|
||||||
|
for (i = 0; i < key_buffer_len; i++)
|
||||||
|
fprintf(stderr, " %3x", key_buffer[i]);
|
||||||
|
fprintf(stderr, "\n");
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue