moo.sdk.output.open_input
- moo.sdk.output.open_input(obj, prompt, callback_verb, *args, password=False)
Request the connected SSH client to show an inline input prompt. When the user submits, the entered text is passed to callback_verb as args[0], followed by any extra positional arguments supplied here. If the user cancels (Ctrl-C / Ctrl-D), the callback is not invoked.
- Parameters:
obj – the player Object whose client should show the prompt
prompt (
str) – text to display before the input fieldcallback_verb – Verb to invoke with the entered text as args[0]
args – additional arguments forwarded to the callback verb as args[1:]
password (
bool) – if True, input is hidden (no echo)