Hide cursor when printing output
This commit is contained in:
parent
31ca72e534
commit
072a432026
|
@ -72,9 +72,12 @@ public class LispTerminal {
|
|||
try {
|
||||
for (int c = outputReader.read(); c != -1; c = outputReader.read()) {
|
||||
synchronized (this) {
|
||||
terminal.setCursorVisible(false);
|
||||
|
||||
if (c == 'x') {
|
||||
terminal.flush();
|
||||
origin = terminal.getCursorPosition();
|
||||
terminal.setCursorVisible(true);
|
||||
} else {
|
||||
terminal.putCharacter((char) c);
|
||||
}
|
||||
|
@ -85,6 +88,7 @@ public class LispTerminal {
|
|||
e.printStackTrace();
|
||||
}
|
||||
|
||||
terminal.setCursorVisible(true);
|
||||
terminal.close();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue