java.lang.Object
org.jline.prompt.PrompterFactory
Factory for creating Prompter instances.
-
Method Summary
Modifier and TypeMethodDescriptionstatic Promptercreate(org.jline.reader.LineReader reader, org.jline.terminal.Terminal terminal, PrompterConfig config) Create a new Prompter instance with the given line reader, terminal, and configuration.static Promptercreate(org.jline.terminal.Terminal terminal) Create a new Prompter instance with the given terminal.static Promptercreate(org.jline.terminal.Terminal terminal, PrompterConfig config) Create a new Prompter instance with the given terminal and configuration.
-
Method Details
-
create
Create a new Prompter instance with the given terminal.- Parameters:
terminal- the terminal to use- Returns:
- a new Prompter instance
-
create
Create a new Prompter instance with the given terminal and configuration.- Parameters:
terminal- the terminal to useconfig- the configuration to use- Returns:
- a new Prompter instance
-
create
public static Prompter create(org.jline.reader.LineReader reader, org.jline.terminal.Terminal terminal, PrompterConfig config) Create a new Prompter instance with the given line reader, terminal, and configuration.- Parameters:
reader- the line reader to useterminal- the terminal to useconfig- the configuration to use- Returns:
- a new Prompter instance
-