-
Notifications
You must be signed in to change notification settings - Fork 233
Closed
Labels
Milestone
Description
ConsolePrompt
do not implementAutoCloseable
- Create
open()
method that set terminal in raw mode (the last four statement of the constructor) - enclose prompt methods
public Map<String, PromptResultItemIF> prompt(List<AttributedString> header, List<PromptableElementIF> promptableElementList)
andpublic Map<String, PromptResultItemIF> prompt(List<AttributedString> headerIn, Function<Map<String, PromptResultItemIF>, List<PromptableElementIF>> promptableElementLists)
code with "open() - close()" i.e.
public Map<String, PromptResultItemIF> prompt(...) throws IOException {
try {
open();
....
....
return resultMap;
} finally {
close();
}
}
- remove
@Deprecated
statements - review
ConsolePrompt
's other methods visibilities - fix examples