diff --git a/ChangeLog b/ChangeLog index cc00845c..8fba2d56 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2015-06-11 Benno Schulenberg + * 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 * doc/texinfo/nano.texi: Show the node with the command-line options in the main menu, to make it easy to find. diff --git a/src/winio.c b/src/winio.c index d94a5bab..2e56bbf7 100644 --- a/src/winio.c +++ b/src/winio.c @@ -181,7 +181,13 @@ void get_key_buffer(WINDOW *win) nodelay(win, FALSE); #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 }