Skip to content

Review ConsolePrompt's method visibilities #1141

@mattirn

Description

@mattirn
  1. ConsolePrompt do not implement AutoCloseable
  2. Create open() method that set terminal in raw mode (the last four statement of the constructor)
  3. enclose prompt methods
    1. public Map<String, PromptResultItemIF> prompt(List<AttributedString> header, List<PromptableElementIF> promptableElementList) and
    2. public 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();
        }
    }
  1. remove @Deprecated statements
  2. review ConsolePrompt's other methods visibilities
  3. fix examples

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions