mirror of
https://git.krews.org/morningstar/Arcturus-Community.git
synced 2024-11-23 07:20:50 +01:00
Adding TTY setting in the emulator
This commit is contained in:
parent
92636bbdc5
commit
f167c6b6cd
@ -175,10 +175,12 @@ public final class Emulator {
|
|||||||
Runtime.getRuntime().availableProcessors() * 2);
|
Runtime.getRuntime().availableProcessors() * 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
Emulator.getThreading().run(() -> {
|
Emulator.getThreading().run(() -> {
|
||||||
}, 1500);
|
}, 1500);
|
||||||
|
|
||||||
|
// Check if console mode is true or false, default is true
|
||||||
|
if (Emulator.getConfig().getBoolean("console.mode", true)) {
|
||||||
|
|
||||||
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
|
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
|
||||||
|
|
||||||
while (!isShuttingDown && isReady) {
|
while (!isShuttingDown && isReady) {
|
||||||
@ -195,6 +197,8 @@ public final class Emulator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user