OP_VERSION "show the Mutt version number and date"
OP_VIEW_ATTACH "view attachment using mailcap entry if necessary"
OP_VIEW_ATTACHMENTS "show MIME attachments"
-OP_WHAT_KEY "display the keycode for a key press"
OP_MAIN_SHOW_LIMIT "show currently active limit pattern"
OP_MAIN_COLLAPSE_THREAD "collapse/uncollapse current thread"
OP_MAIN_COLLAPSE_ALL "collapse/uncollapse all threads"
ITEM("current-top", OP_CURRENT_TOP, NULL)
ITEM("current-middle", OP_CURRENT_MIDDLE, NULL)
ITEM("current-bottom", OP_CURRENT_BOTTOM, NULL)
- ITEM("what-key", OP_WHAT_KEY, NULL)
ENDLIST
LIST(OpMain)
ESCDELAY = 50;
}
-/*
- * prompts the user to enter a keystroke, and displays the octal value back
- * to the user.
- */
-void mutt_what_key (void)
-{
- int ch;
-
- mvwprintw(stdscr, LINES - 1, 0, _("Enter keys (^G to abort): "));
- do {
- ch = getch();
- if (ch != ERR && ch != ctrl ('G')) {
- mutt_message (_("Char = %s, Octal = %o, Decimal = %d"),
- km_keyname (ch), ch, ch);
- }
- }
- while (ch != ERR && ch != ctrl ('G'));
-
- mutt_flushinp ();
-}
-
int mutt_any_key_to_continue (const char *s)
{
struct termios t;
case OP_END_COND:
break;
- case OP_WHAT_KEY:
- mutt_what_key ();
- break;
-
case OP_SIDEBAR_SCROLL_UP:
case OP_SIDEBAR_SCROLL_DOWN:
case OP_SIDEBAR_NEXT:
ssize_t mutt_pretty_size(char *s, ssize_t len, ssize_t n);
int mutt_any_key_to_continue (const char *);
-void mutt_what_key (void);
int mutt_complete (char *, ssize_t);
#define mutt_enter_fname(A,B,C,D,E) _mutt_enter_fname(A,B,C,D,E,0,NULL,NULL)
int _mutt_enter_fname (const char *, char *, ssize_t, int *, int, int,
MAYBE_REDRAW (menu->redraw);
break;
- case OP_WHAT_KEY:
- mutt_what_key ();
- break;
-
case OP_REDRAW:
clearok (main_w, TRUE);
menu->redraw = REDRAW_FULL;