You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Ok, so if I understand this correctly this would roll back the change that made ConsolePrompt AutoCloseable?
If so another improvement might be introduce a subclass of ConsolePrompt that does implement AutoCloseable and that handles the open/close for you.
And perhaps (but I haven't thought it through a 100% yet) we would not even need a (public) open() necessarily, thereby maintaining full backward compatibility with older code (but we'd advise people to switch to the newer, improved, AutoCloseable version of ConsolePrompt)
ConsolePrompt
do not implementAutoCloseable
open()
method that set terminal in raw mode (the last four statement of the constructor)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.
@Deprecated
statementsConsolePrompt
's other methods visibilitiesThe text was updated successfully, but these errors were encountered: