term.input.prompt.new

term.input.prompt

new(prompt_module_name) -> prompt

Create a new prompt instance from a named module

If prompt_module_name is "default", returns a built-in prompt with get, set, get_blocks, and set_blocks methods. Otherwise loads the named module and calls its new(). Returns nil if the module is not available.