Skip to content

Commit

Permalink
UnsatisfiedLinkError when using terminal-jansi on Linux, #112
Browse files Browse the repository at this point in the history
  • Loading branch information
gnodet committed Apr 12, 2017
1 parent 85fe02b commit d52c65b
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,20 @@ public class JansiSupportImpl implements JansiSupport {
public Pty current() throws IOException {
String osName = System.getProperty("os.name");
if (osName.startsWith("Linux")) {
return LinuxNativePty.current();
// This leads to java.lang.UnsatisfiedLinkError: org.fusesource.jansi.internal.CLibrary.ioctl(IJLorg/fusesource/jansi/internal/CLibrary$WinSize;)I
// so disable it until jansi is fixed, see #112
// return LinuxNativePty.current();
}
else if (osName.startsWith("Mac") || osName.startsWith("Darwin")) {
return OsXNativePty.current();
}
else if (osName.startsWith("Solaris") || osName.startsWith("SunOS")) {
return SolarisNativePty.current();
// Solaris is not supported by jansi
// return SolarisNativePty.current();
}
else if (osName.startsWith("FreeBSD")) {
return FreeBsdNativePty.current();
// FreeBSD is not supported by jansi
// return FreeBsdNativePty.current();
}
throw new UnsupportedOperationException();
}
Expand Down

0 comments on commit d52c65b

Please sign in to comment.