Dialog functions
The following functions are exported by the dialogs module.
- input_text(prompt, width, text = None)
- Presents a modal dialog containing the given prompt and a text field. The width is the width of the text field, and the text, if any, is its initial contents.
If the dialog is dismissed by pressing Return or Enter, the contents of
the text field is returned. If it is dismissed by pressing Escape, None
is returned.
---