-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review ConsolePrompt's method visibilities #1141
Comments
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) WDYT? |
Yes.
There are only two methods where we need to call
I think it is better break now backward compatibility. The old dynamic prompt API is available only in JLine 3.28.0. Those who have started to use old API must migrate to the new one when they start to use JLine version > 3.28.0. |
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: