Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Merge pull request #24 from SpigotMC/master
Browse files Browse the repository at this point in the history
Added ansi "erase line"
  • Loading branch information
John committed Apr 8, 2016
2 parents 35eda52 + f070e2d commit d221e20
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion proxy/src/main/java/net/md_5/bungee/log/ColouredWriter.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
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
{
Expand Down Expand Up @@ -52,7 +53,7 @@ public void print(String s)
}
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 )
Expand Down

0 comments on commit d221e20

Please sign in to comment.