diff options
author | jkh <jkh@FreeBSD.org> | 1997-01-17 08:19:19 +0000 |
---|---|---|
committer | jkh <jkh@FreeBSD.org> | 1997-01-17 08:19:19 +0000 |
commit | 83c2f5687e154ea6600cc012b5003a582b4f0dee (patch) | |
tree | a8c3c9a499fc7e9d4fdabf5a88e73c6fbe57c10d /gnu/lib/libdialog/dialog.priv.h | |
parent | 6c16e85baee48222de6708d19a002886f684e793 (diff) | |
download | FreeBSD-src-83c2f5687e154ea6600cc012b5003a582b4f0dee.zip FreeBSD-src-83c2f5687e154ea6600cc012b5003a582b4f0dee.tar.gz |
Go on one of my periodic rampages through this code, trying to make
it DTRT. In the process, discover the usual 10-15 evil bogons which
have been lurking in it for years. This closes, for one thing, the
recent report Mike Smith made about nested checklist menus returning
with the scrolling region messed up.
Diffstat (limited to 'gnu/lib/libdialog/dialog.priv.h')
-rw-r--r-- | gnu/lib/libdialog/dialog.priv.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gnu/lib/libdialog/dialog.priv.h b/gnu/lib/libdialog/dialog.priv.h index 9d32f65..68b136f 100644 --- a/gnu/lib/libdialog/dialog.priv.h +++ b/gnu/lib/libdialog/dialog.priv.h @@ -85,6 +85,10 @@ #endif #endif /* HAVE_NCURSES */ +/* Travel key conventions */ +#define KEY_IS_UP(key) ((key) == KEY_UP || (key) == '-' || key == '\020' /* ^P */) +#define KEY_IS_DOWN(key) ((key) == KEY_DOWN || (key) == '+' || key == '\016' /* ^N */) + /* * Global variables */ |