Skip to content
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

Upgrade to latest jline release and enable the gogo-build #390

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

laeubi
Copy link

@laeubi laeubi commented Mar 6, 2025

Currently gogo-jline uses a rather outdated jline release, this upgrades to the latest release and enables the build.

@cstamas
Copy link
Member

cstamas commented Mar 6, 2025

So you basically reimplemented JLine properties org.jline.terminal.dumb and org.jline.terminal.dumb.color 👍

As @gnodet said, everything can be tuned with system properties in JLine3 already. Also, why not latest JLine3?

@laeubi laeubi force-pushed the support_color_mode branch 2 times, most recently from f223995 to f268a41 Compare March 6, 2025 16:32
@laeubi laeubi changed the title Support for forcing ANSI colors to gogo-jline and enable dumb terminal Upgrade to latest jline release and enable the gogo-build Mar 6, 2025
@@ -683,7 +684,7 @@ public List<Candidate> __files(CommandSession session) {
List<Candidate> candidates = new ArrayList<>();
new FilesCompleter(session.currentDir()) {
@Override
protected String getDisplay(Terminal terminal, Path p) {
protected String getDisplay(Terminal terminal, Path p, StyleResolver resolver, String separator) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looks weird.

@@ -696,7 +697,7 @@ public List<Candidate> __directories(CommandSession session) {
List<Candidate> candidates = new ArrayList<>();
new DirectoriesCompleter(session.currentDir()) {
@Override
protected String getDisplay(Terminal terminal, Path p) {
protected String getDisplay(Terminal terminal, Path p, StyleResolver resolver, String separator) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The indentation looks weird.

@cstamas
Copy link
Member

cstamas commented Mar 6, 2025

Looks good! Some formatting maybe...

Currently gogo-jline uses a rather outdated jline release, this upgrades
to the latest release and enables the build.
@laeubi laeubi force-pushed the support_color_mode branch from f268a41 to ce69e26 Compare March 6, 2025 16:49
@paulrutter
Copy link
Contributor

The build just failed on the branch build. Probably one of the other projects in the pom needs looking into as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants