summaryrefslogtreecommitdiff
path: root/src/input_handler.hh
diff options
context:
space:
mode:
authorMaxime Coste <frrrwww@gmail.com>2014-04-26 15:09:07 +0100
committerMaxime Coste <frrrwww@gmail.com>2014-04-27 12:37:41 +0100
commitb370f91025a6847fe3204e34f5e9016b34ef4f0f (patch)
tree2b5be86a0727082149768dea05f3c0f5cafc9480 /src/input_handler.hh
parent0c1b27cfa7d85f08677e7784580c2869ad6602cd (diff)
Add -init switch to :prompt to set the initial text
Fixes #97
Diffstat (limited to 'src/input_handler.hh')
-rw-r--r--src/input_handler.hh5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/input_handler.hh b/src/input_handler.hh
index 1d2e992e..0d9d34cc 100644
--- a/src/input_handler.hh
+++ b/src/input_handler.hh
@@ -47,8 +47,9 @@ public:
// abort or validation with corresponding PromptEvent value
// returns to normal mode after validation if callback does
// not change the mode itself
- void prompt(const String& prompt, ColorPair prompt_colors,
- Completer completer, PromptCallback callback);
+ void prompt(const String& prompt, String initstr,
+ ColorPair prompt_colors, Completer completer,
+ PromptCallback callback);
void set_prompt_colors(ColorPair prompt_colors);
// enter menu mode, callback is called on each selection change,