Skip to content

Commit a287383

Browse files
added potential support for aarch (untested)
1 parent a6e55c4 commit a287383

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/main/kotlin/atm/bloodworkxgaming/serverstarter/ServerStarter.kt

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,12 @@ class ServerStarter(args: Array<String>) {
198198

199199
fun main(args: Array<String>) {
200200
// System.setProperty("jansi.passthrough", "true")
201-
AnsiConsole.systemInstall()
201+
try {
202+
AnsiConsole.systemInstall()
203+
} catch (e: Exception) {
204+
println("jansi couldn't be installed in this terminal (e.g. due to aarch64 not being supported)\n" +
205+
"Future terminal messages will have no color.")
206+
}
202207

203208
try {
204209
val starter = ServerStarter(args)

0 commit comments

Comments
 (0)