Code polish
This commit is contained in:
parent
5cf89ac5ef
commit
20d0324a35
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user