Package org.fusesource.jansi.internal
Class MingwSupport
- java.lang.Object
-
- org.fusesource.jansi.internal.MingwSupport
-
public class MingwSupport extends java.lang.Object
Support 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.exe
andtty.exe
to obtain the terminal name and width.
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.regex.Pattern
columnsPatterns
private java.lang.String
sttyCommand
private java.lang.String
ttyCommand
-
Constructor Summary
Constructors Constructor Description MingwSupport()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConsoleName(boolean stdout)
private java.lang.ProcessBuilder.Redirect
getRedirect(java.io.FileDescriptor fd)
This requires --add-opens java.base/java.lang=ALL-UNNAMEDint
getTerminalWidth(java.lang.String name)
private static java.lang.String
waitAndCapture(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.IOException
java.lang.InterruptedException
-
getRedirect
private java.lang.ProcessBuilder.Redirect getRedirect(java.io.FileDescriptor fd) throws java.lang.ReflectiveOperationException
This requires --add-opens java.base/java.lang=ALL-UNNAMED- Throws:
java.lang.ReflectiveOperationException
-
-