get_text_line_input(prompt, title)[source]

get_text_line_input prompts the user to input a string with the given prompt and title

Note: This API function differently on the command-line vs the UI. In the UI a pop-up is used. On the command-line a simple text prompt is used.

  • prompt (str) – String to prompt with.

  • title (str) – Title of the window when executed in the UI.

Return type

str containing the input without trailing newline character.

>>> get_text_line_input("PROMPT>", "getinfo")
PROMPT> Input!