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 89135df07e0b CAMEL-23615: Force colored logging when TUI launches 
examples (#23543)
89135df07e0b is described below

commit 89135df07e0b0fd1e7e21b806373384ac8884e9b
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed May 27 07:42:45 2026 +0200

    CAMEL-23615: Force colored logging when TUI launches examples (#23543)
    
    When the TUI launches examples via F2, stdout is redirected to a file
    so the child process detects no TTY and disables ANSI colors. Pass
    --logging-color=true explicitly so log output includes color codes
    that the TUI's LogTab already knows how to parse and render.
    
    Co-authored-by: Claude Opus 4.6 <[email protected]>
---
 .../java/org/apache/camel/dsl/jbang/core/commands/tui/ActionsPopup.java | 2 ++
 1 file changed, 2 insertions(+)

diff --git 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ActionsPopup.java
 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ActionsPopup.java
index 28c6eed536a4..0ecdd69acbd8 100644
--- 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ActionsPopup.java
+++ 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/ActionsPopup.java
@@ -936,6 +936,7 @@ class ActionsPopup {
             List<String> cmd = new 
ArrayList<>(LauncherHelper.getCamelCommand());
             cmd.add("run");
             cmd.add("--example=" + exampleName);
+            cmd.add("--logging-color=true");
             cmd.addAll(extraArgs);
             Path outputFile = Files.createTempFile("camel-example-", ".log");
             outputFile.toFile().deleteOnExit();
@@ -1102,6 +1103,7 @@ class ActionsPopup {
             List<String> cmd = new 
ArrayList<>(LauncherHelper.getCamelCommand());
             cmd.add("run");
             cmd.add("--example=" + exampleName);
+            cmd.add("--logging-color=true");
             Path outputFile = Files.createTempFile("camel-example-", ".log");
             outputFile.toFile().deleteOnExit();
             ProcessBuilder pb = new ProcessBuilder(cmd);

Reply via email to