Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Jansi to 2.4.1 #106

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ lazy val jni = project
shared,
name := "windows-ansi",
libraryDependencies ++= Seq(
"org.fusesource.jansi" % "jansi" % "1.18"
"org.fusesource.jansi" % "jansi" % "2.4.1",
)
)

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package io.github.alexarchambault.windowsansi;

import org.fusesource.jansi.internal.Kernel32;
import org.fusesource.jansi.internal.WindowsSupport;

import java.io.IOException;
import java.util.Objects;
Expand Down Expand Up @@ -31,7 +30,7 @@ public static boolean setup() throws IOException {
long console = Kernel32.GetStdHandle(Kernel32.STD_OUTPUT_HANDLE);
int[] mode = new int[1];
if (Kernel32.GetConsoleMode(console, mode) == 0)
throw new IOException("Failed to get console mode: " + WindowsSupport.getLastErrorMessage());
throw new IOException("Failed to get console mode: " + Kernel32.getLastErrorMessage());
return Kernel32.SetConsoleMode(console, mode[0] | ENABLE_VIRTUAL_TERMINAL_PROCESSING) != 0;
}

Expand Down
Loading