From 853613cb687c8f6c0d29afe832414554fbc3bf20 Mon Sep 17 00:00:00 2001 From: PatR Date: Mon, 14 Aug 2023 13:08:11 -0700 Subject: [PATCH] curses numpad handling comments Update a couple of comments for yesterday's 8-bit escapes M-O to M-^O fix. --- win/curses/cursmisc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/win/curses/cursmisc.c b/win/curses/cursmisc.c index c084e8a1b..b348194e3 100644 --- a/win/curses/cursmisc.c +++ b/win/curses/cursmisc.c @@ -1071,7 +1071,7 @@ curses_mouse_support(int mode) /* 0: off, 1: on, 2: alternate on */ #endif } -/* caller just got an input character of ESC or M-O; +/* caller just got an input character of ESC or M-^O; note: curses converts a lot of escape sequences to single values greater than 255 and those won't look like ESC to caller so won't get here */ static int @@ -1104,7 +1104,7 @@ parse_escape_sequence(int key, boolean *keypadnum) ret = getch(); if (ret == ERR) { - /* there was no additional char; treat as M-O below */ + /* there was no additional char; treat as M-O or M-^O below */ ret = (key == '\033') ? 'O' : C('O'); } else if (ret >= 112 && ret <= 121) { /* 'p'..'y' */ *keypadnum = TRUE; /* convert 'p'..'y' to '0'..'9' below */