]> granicus.if.org Git - nethack/commitdiff
Show control key combos with uppercase alpha
authorPasi Kallinen <paxed@alt.org>
Mon, 13 Mar 2017 18:32:43 +0000 (20:32 +0200)
committerPasi Kallinen <paxed@alt.org>
Mon, 13 Mar 2017 18:32:46 +0000 (20:32 +0200)
Instead of ^r, show ^R, as that one is used everywhere.

src/cmd.c

index bf2c80e300f2a097f33d3cde68c29a76994c984b..79e0962499c017e1bce89fd5d7a7e41da887caa1 100644 (file)
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -3741,7 +3741,7 @@ char *txt; /* sufficiently long buffer */
     else if (c == '\n')
         Sprintf(txt, "<enter>");
     else if (ISCTRL(c))
-        Sprintf(txt, "^%c", UNCTRL(c));
+        Sprintf(txt, "^%c", highc(UNCTRL(c)));
     else if (ISMETA(c))
         Sprintf(txt, "M-%c", UNMETA(c));
     else if (c >= 33 && c <= 126)