Archived
0

Избавление от класса ShellConsoleHandler

This commit is contained in:
2015-09-11 16:14:22 +03:00
parent 1ee16ee868
commit 533851d4ef

View File

@@ -1,27 +0,0 @@
package ru.dmitriymx.shell;
import jline.console.ConsoleReader;
import java.io.IOException;
import java.util.logging.ConsoleHandler;
public class ShellConsoleHandler extends ConsoleHandler {
private Shell shell;
public ShellConsoleHandler(Shell shell) {
super();
this.shell = shell;
}
@Override
public synchronized void flush() {
try {
shell.cReader.print(ConsoleReader.RESET_LINE + "");
shell.cReader.flush();
super.flush();
} catch (IOException e) {
e.printStackTrace();
super.flush();
}
}
}