From b370f91025a6847fe3204e34f5e9016b34ef4f0f Mon Sep 17 00:00:00 2001 From: Maxime Coste Date: Sat, 26 Apr 2014 15:09:07 +0100 Subject: Add -init switch to :prompt to set the initial text Fixes #97 --- src/input_handler.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/input_handler.hh') 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, -- cgit v1.2.3