Package org.fusesource.jansi.internal
Class MingwSupport
- java.lang.Object
-
- org.fusesource.jansi.internal.MingwSupport
-
public class MingwSupport extends java.lang.ObjectSupport for MINGW terminals. Those terminals do not use the underlying windows terminal and there's no CLibrary available in these environments. We have to rely on callingstty.exeandtty.exeto obtain the terminal name and width.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.PatterncolumnsPatternsprivate java.lang.StringsttyCommandprivate java.lang.StringttyCommand
-
Constructor Summary
Constructors Constructor Description MingwSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetConsoleName(boolean stdout)private java.lang.ProcessBuilder.RedirectgetRedirect(java.io.FileDescriptor fd)This requires --add-opens java.base/java.lang=ALL-UNNAMEDintgetTerminalWidth(java.lang.String name)private static java.lang.StringwaitAndCapture(java.lang.Process p)
-
-
-
Method Detail
-
getConsoleName
public java.lang.String getConsoleName(boolean stdout)
-
getTerminalWidth
public int getTerminalWidth(java.lang.String name)
-
waitAndCapture
private static java.lang.String waitAndCapture(java.lang.Process p) throws java.io.IOException, java.lang.InterruptedException- Throws:
java.io.IOExceptionjava.lang.InterruptedException
-
getRedirect
private java.lang.ProcessBuilder.Redirect getRedirect(java.io.FileDescriptor fd) throws java.lang.ReflectiveOperationExceptionThis requires --add-opens java.base/java.lang=ALL-UNNAMED- Throws:
java.lang.ReflectiveOperationException
-
-