From 86866ff113c52e25a7ee7b29433d7641d1c6ed9e Mon Sep 17 00:00:00 2001 From: sabetts Date: Fri, 21 Dec 2001 11:21:08 +0000 Subject: * src/input.c (input_history): new static global (input_num_history_entries): likewise (get_more_input): cycle through the input history. * src/conf.h (INPUT_PREV_HISTORY_KEY): new define (INPUT_PREV_HISTORY_MODIFIER): likewise (INPUT_NEXT_HISTORY_KEY): likewise (INPUT_NEXT_HISTORY_MODIFIER): likewise (INPUT_MAX_HISTORY): likewise * src/input.c (update_input_window): Draw the cursor in the right place. --- src/conf.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/conf.h') diff --git a/src/conf.h b/src/conf.h index 47e2289..10821a1 100644 --- a/src/conf.h +++ b/src/conf.h @@ -32,6 +32,17 @@ #define INPUT_ABORT_KEY XK_g #define INPUT_ABORT_MODIFIER ControlMask +/* This is the previous history entry key when typing input. */ +#define INPUT_PREV_HISTORY_KEY XK_p +#define INPUT_PREV_HISTORY_MODIFIER ControlMask + +/* This is the next history entry key when typing input. */ +#define INPUT_NEXT_HISTORY_KEY XK_n +#define INPUT_NEXT_HISTORY_MODIFIER ControlMask + +/* Number of history items to store. */ +#define INPUT_MAX_HISTORY 50 + /* Treat windows with maxsize hints as if they were a transient window (don't hide the windows underneath, and center them) */ #define MAXSIZE_WINDOWS_ARE_TRANSIENTS -- cgit v1.2.3