From 1511066266f25401dea52e1d351378137bd9c16c Mon Sep 17 00:00:00 2001 From: Tamas Cservenak Date: Sat, 10 Sep 2022 11:30:28 +0200 Subject: [PATCH] Fixes module id coloring on Maven transfer. The module id coloring was not consistent during transfer and it caused "vibrating" effect. --- .../org/mvndaemon/mvnd/common/logging/TerminalOutput.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 89c688ea..46e1a06b 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 @@ -90,6 +90,7 @@ public class TerminalOutput implements ClientOutput { private static final AttributedStyle GREEN_FOREGROUND = new AttributedStyle().foreground(AttributedStyle.GREEN); private static final AttributedStyle CYAN_FOREGROUND = new AttributedStyle().foreground(AttributedStyle.CYAN); + private static final AttributedStyle WHITE_FOREGROUND = new AttributedStyle().foreground(AttributedStyle.WHITE); private final Terminal terminal; private final Terminal.SignalHandler previousIntHandler; @@ -767,12 +768,15 @@ public class TerminalOutput implements ClientOutput { if (transfer != null) { asb .append(':') + .style(CYAN_FOREGROUND) .append(String.format(artifactIdFormat, prj.id)) + .style(WHITE_FOREGROUND) .append(transfer); } else if (execution == null) { asb .append(':') - .append(prj.id); + .style(CYAN_FOREGROUND) + .append(String.format(artifactIdFormat, prj.id)); } else { asb .append(':')