forked from jline/jline3
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Dynamic console-ui prompts, fixes jline#1051
# Conflicts: # console-ui/src/main/java/org/jline/consoleui/prompt/ConsolePrompt.java
- Loading branch information
Showing
9 changed files
with
475 additions
and
407 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
These changes are not backward compatible anyway, wouldn't it be more useful to not call
close()
and let theAutoCloseable
handle that?Yes, old code will break if they don't switch to using try-with-resources, but they will break anyway if they call
prompt()
more than once on the sameConsolePrompt
, right?