mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Added ">" to input command line, separated it from output buffer properly
By: Dinnerbone <dinnerbone@dinnerbone.com>
This commit is contained in:
@@ -16,12 +16,14 @@ public class TerminalConsoleHandler extends ConsoleHandler {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public synchronized void flush() {
|
public synchronized void flush() {
|
||||||
super.flush();
|
|
||||||
try {
|
try {
|
||||||
reader.redrawLine();
|
reader.printString(ConsoleReader.RESET_LINE + "");
|
||||||
|
reader.flushConsole();
|
||||||
|
super.flush();
|
||||||
|
reader.drawLine();
|
||||||
|
reader.flushConsole();
|
||||||
} catch (IOException ex) {
|
} catch (IOException ex) {
|
||||||
Logger.getLogger(TerminalConsoleHandler.class.getName()).log(Level.SEVERE, null, ex);
|
Logger.getLogger(TerminalConsoleHandler.class.getName()).log(Level.SEVERE, null, ex);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user