daniele77 / cli

A library for interactive command line interfaces in modern C++
Boost Software License 1.0
1.24k stars 140 forks source link

Prompt label access #203

Closed guestieng closed 1 year ago

guestieng commented 1 year ago

A little but handy feature request: making it possible to allow for a change of the command prompt label after initialization. All that would be needed, was to, e.g., make public the members Cli::RootMenu() and Menu::prompt, with the latter being made non-const, of course. This change would, e.g., allow for displaying different "states" in the prompt label, such as a logging-plus-input mode or distinguished sub-cli's in general.

daniele77 commented 1 year ago

Thank you for your suggestion. Is this a duplicate of issue #199 ?

guestieng commented 1 year ago

Yes, indeed, this seems to be the case.

daniele77 commented 1 year ago

Ok, I'm gonna close this issue and keep #199 It's already planned.