Code polish

This commit is contained in:
nathan 2016-05-29 22:45:27 +02:00
parent 5cf89ac5ef
commit 20d0324a35

View File

@ -319,18 +319,14 @@ class Input {
private static private static
void run() { void run() {
Logger logger2 = logger; final Logger logger2 = logger;
final PrintStream out = System.out;
Ansi ansi = null;
PrintStream out = System.out;
int typedChar;
char asChar;
final char overWriteChar = ' '; final char overWriteChar = ' ';
Ansi ansi = null;
int typedChar;
char asChar;
// don't type ; in a bash shell, it quits everything
// \n is replaced by \r in unix terminal?
while ((typedChar = terminal.read()) != -1) { while ((typedChar = terminal.read()) != -1) {
synchronized (inputLock) { synchronized (inputLock) {
// don't let anyone add a new reader while we are still processing the current actions // don't let anyone add a new reader while we are still processing the current actions