diff options
author | sabetts <sabetts> | 2001-12-21 11:21:08 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-12-21 11:21:08 +0000 |
commit | 86866ff113c52e25a7ee7b29433d7641d1c6ed9e (patch) | |
tree | fa4e5f34d0684382feb5c1f02b20dcd121d23a0b /src/conf.h | |
parent | 872a9e14fae3e28451b04349bdbd6c60407c4b26 (diff) | |
download | ratpoison-86866ff113c52e25a7ee7b29433d7641d1c6ed9e.zip |
* 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.
Diffstat (limited to 'src/conf.h')
-rw-r--r-- | src/conf.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 |