summaryrefslogtreecommitdiff
path: root/src/conf.h
diff options
context:
space:
mode:
authorsabetts <sabetts>2001-12-21 11:21:08 +0000
committersabetts <sabetts>2001-12-21 11:21:08 +0000
commit86866ff113c52e25a7ee7b29433d7641d1c6ed9e (patch)
treefa4e5f34d0684382feb5c1f02b20dcd121d23a0b /src/conf.h
parent872a9e14fae3e28451b04349bdbd6c60407c4b26 (diff)
downloadratpoison-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.h11
1 files changed, 11 insertions, 0 deletions
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