diff options
| author | Maxime Coste <frrrwww@gmail.com> | 2014-04-26 15:09:07 +0100 |
|---|---|---|
| committer | Maxime Coste <frrrwww@gmail.com> | 2014-04-27 12:37:41 +0100 |
| commit | b370f91025a6847fe3204e34f5e9016b34ef4f0f (patch) | |
| tree | 2b5be86a0727082149768dea05f3c0f5cafc9480 /src/input_handler.hh | |
| parent | 0c1b27cfa7d85f08677e7784580c2869ad6602cd (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.hh | 5 |
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, |
