Skip to content

Commit 8e39855

Browse files
author
Nicolas Maquet
committed
make ANSI escape codes explicit
1 parent 71ce27d commit 8e39855

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/com/zendesk/maxwell/bootstrap/MaxwellBootstrapUtility.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,9 @@ private String prettyDuration(long millis, long elapsedMillis) {
138138

139139
private void displayLine(String line) {
140140
if ( console != null ) {
141-
System.out.print("\u001b[2K\u001b[G" + line);
141+
String ansiClearLine = "\u001b[2K";
142+
String ansiMoveCursorToColumnZero = "\u001b[G";
143+
System.out.print(ansiClearLine + ansiMoveCursorToColumnZero + line);
142144
System.out.flush();
143145
}
144146
}

0 commit comments

Comments
 (0)