Adriano Machado created CAMEL-23830:
---------------------------------------
Summary: camel-jbang - TUI shell panel: command echo and error
output render in hard-to-read dark red
Key: CAMEL-23830
URL: https://issues.apache.org/jira/browse/CAMEL-23830
Project: Camel
Issue Type: Bug
Components: camel-jbang
Reporter: Adriano Machado
In the embedded
shell panel \(camel\-jbang TUI, ShellPanel\), text echoed while typing a
command, and error output such as "Unknown command: x", render in a dark red
\(\~RGB 136,0,0\) that is hard
to read on dark terminal themes. The prompt itself renders fine \(camel in
orange, version in green, > in white\).
Root cause: JLine command highlighting colors unrecognized
commands with ANSI red \(index 1\), and JLine ScreenTerminal encodes named
ANSI colors as a 4\-bit\-per\-channel RGB value. ShellPanel.convertAttrToStyle
reconstructs that as a
literal dim RGB instead of a terminal\-themed named color. Elsewhere
\(TuiHelper\) the TUI uses Color.ansi\(AnsiColor.RED\) so the host terminal
applies its theme and stays
readable.
Acceptance: command echo and shell error output are legible on dark and light
terminal themes, consistent with how other TUI components render ANSI
colors.
_Filed by Claude Code on behalf of Adriano Machado._
--
This message was sent by Atlassian Jira
(v8.20.10#820010)