From 4908869924ef6617999fbbcd6e037ddf4bfaecf9 Mon Sep 17 00:00:00 2001 From: CraftBukkit/Spigot Date: Fri, 25 Feb 2011 19:01:14 +0000 Subject: [PATCH] Added ">" to input command line, separated it from output buffer properly By: Dinnerbone --- .../bukkit/craftbukkit/util/TerminalConsoleHandler.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/paper-server/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java b/paper-server/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java index a7beb5587d..2034ad972f 100644 --- a/paper-server/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java +++ b/paper-server/src/main/java/org/bukkit/craftbukkit/util/TerminalConsoleHandler.java @@ -16,12 +16,14 @@ public class TerminalConsoleHandler extends ConsoleHandler { @Override public synchronized void flush() { - super.flush(); try { - reader.redrawLine(); + reader.printString(ConsoleReader.RESET_LINE + ""); + reader.flushConsole(); + super.flush(); + reader.drawLine(); + reader.flushConsole(); } catch (IOException ex) { Logger.getLogger(TerminalConsoleHandler.class.getName()).log(Level.SEVERE, null, ex); } } - }