From f070e2d064acfe61c155e9ec52c13df24c891f7d Mon Sep 17 00:00:00 2001 From: Jofkos Date: Thu, 7 Apr 2016 23:42:11 +0200 Subject: [PATCH] Added ansi "erase line" --- proxy/src/main/java/net/md_5/bungee/log/ColouredWriter.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/proxy/src/main/java/net/md_5/bungee/log/ColouredWriter.java b/proxy/src/main/java/net/md_5/bungee/log/ColouredWriter.java index 6e74b501..d5bba262 100644 --- a/proxy/src/main/java/net/md_5/bungee/log/ColouredWriter.java +++ b/proxy/src/main/java/net/md_5/bungee/log/ColouredWriter.java @@ -8,6 +8,7 @@ import java.util.logging.LogRecord; import jline.console.ConsoleReader; import net.md_5.bungee.api.ChatColor; import org.fusesource.jansi.Ansi; +import org.fusesource.jansi.Ansi.Erase; public class ColouredWriter extends Handler { @@ -52,7 +53,7 @@ public class ColouredWriter extends Handler } try { - console.print( ConsoleReader.RESET_LINE + s + Ansi.ansi().reset().toString() ); + console.print( Ansi.ansi().eraseLine(Erase.ALL).toString() + ConsoleReader.RESET_LINE + s + Ansi.ansi().reset().toString() ); console.drawLine(); console.flush(); } catch ( IOException ex )