You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by sl...@apache.org on 2026/10/18 21:09:21 UTC
(maven-mvnd) 02/03: Fall back to a dumb terminal without a warning when no system terminal exists
This is an automated email from the ASF dual-hosted git repository.
slachiewicz pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/maven-mvnd.git
commit 1f4afa7ccc3424bf3d9337225aa9557dd88bc314
Author: Sylwester Lachiewicz <sl...@apache.org>
AuthorDate: Sun Oct 18 20:31:39 2026 +0200
Fall back to a dumb terminal without a warning when no system terminal exists
Fixes #1028
---
.../src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java | 2 ++
1 file changed, 2 insertions(+)
diff --git a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java b/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java
index 641ba498..8290e0ec 100644
--- a/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java
+++ b/common/src/main/java/org/mvndaemon/mvnd/common/logging/TerminalOutput.java
@@ -155,6 +155,8 @@ public class TerminalOutput implements ClientOutput {
this.start = System.currentTimeMillis();
TerminalBuilder builder = TerminalBuilder.builder();
builder.systemOutput(TerminalBuilder.SystemOutput.SysErr);
+ // fall back to a dumb terminal silently when there is no system terminal, e.g. on headless CI
+ builder.dumb(true);
this.terminal = builder.build();
this.dumb = terminal.getType().startsWith("dumb");
this.noBuffering = noBuffering;