This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new 9acad4679d1e chore: disable per-keystroke command highlighting in TUI
shell
9acad4679d1e is described below
commit 9acad4679d1e5a849e8d314f21a9d431e7764df5
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Jun 26 11:45:32 2026 +0200
chore: disable per-keystroke command highlighting in TUI shell
JLine's commandHighlighter parses the full Camel command tree on every
keystroke to syntax-color the input, causing sluggish typing. TAB
completion is unaffected.
Co-Authored-By: Claude Opus 4.7 <[email protected]>
Signed-off-by: Claus Ibsen <[email protected]>
---
.../java/org/apache/camel/dsl/jbang/core/commands/tui/ShellPanel.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ShellPanel.java
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ShellPanel.java
index 649f701a0f26..6baaf2c841d5 100644
---
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ShellPanel.java
+++
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ShellPanel.java
@@ -428,7 +428,7 @@ class ShellPanel {
.groups(registry, new PosixCommandGroup(), new
InteractiveCommandGroup())
.historyCommands(true)
.helpCommands(true)
- .commandHighlighter(true)
+ .commandHighlighter(false)
.variable(LineReader.LIST_MAX, 50)
.onReaderReady((reader, dispatcher) -> {
if (dispatcher instanceof DefaultCommandDispatcher
dcd) {