From 4e2af9f371f2d6522eff3d4fc4960c898ffa0c86 Mon Sep 17 00:00:00 2001 From: Guillaume Nodet <gnodet@gmail.com> Date: Tue, 10 Dec 2024 16:42:25 +0100 Subject: [PATCH] Add style for command description in completer --- builtins/src/main/java/org/jline/builtins/Styles.java | 2 +- .../main/java/org/jline/console/impl/SystemRegistryImpl.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/builtins/src/main/java/org/jline/builtins/Styles.java b/builtins/src/main/java/org/jline/builtins/Styles.java index 7d18714b3..3705301d4 100644 --- a/builtins/src/main/java/org/jline/builtins/Styles.java +++ b/builtins/src/main/java/org/jline/builtins/Styles.java @@ -35,7 +35,7 @@ public class Styles { "italic", "underline"); private static final String DEFAULT_LS_COLORS = "di=1;91:ex=1;92:ln=1;96:fi="; - private static final String DEFAULT_HELP_COLORS = "ti=1;34:co=1:ar=3:op=33"; + private static final String DEFAULT_HELP_COLORS = "ti=1;34:co=1:ar=3:op=33:de="; private static final String DEFAULT_PRNT_COLORS = "th=1;34:rn=1;34:rs=,~grey15:mk=1;34:em=31:vs=32"; private static final String LS_COLORS = "LS_COLORS"; private static final String HELP_COLORS = "HELP_COLORS"; diff --git a/console/src/main/java/org/jline/console/impl/SystemRegistryImpl.java b/console/src/main/java/org/jline/console/impl/SystemRegistryImpl.java index df521d7d1..3e8fff408 100644 --- a/console/src/main/java/org/jline/console/impl/SystemRegistryImpl.java +++ b/console/src/main/java/org/jline/console/impl/SystemRegistryImpl.java @@ -1446,7 +1446,7 @@ private void printCommandInfo(String command, String info, int max) { asb.append("\t"); asb.append(command, HelpException.defaultStyle().resolve(".co")); asb.append("\t"); - asb.append(info); + asb.append(info, HelpException.defaultStyle().resolve(".de")); asb.setLength(terminal().getWidth()); asb.toAttributedString().println(terminal()); }