Package org.fusesource.jansi.internal
Class MingwSupport
java.lang.Object
org.fusesource.jansi.internal.MingwSupport
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 calling
stty.exe
and tty.exe
to
obtain the terminal name and width.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetConsoleName
(boolean stdout) private ProcessBuilder.Redirect
This requires --add-opens java.base/java.lang=ALL-UNNAMEDint
getTerminalWidth
(String name) private static String
-
Field Details
-
sttyCommand
-
ttyCommand
-
columnsPatterns
-
-
Constructor Details
-
MingwSupport
public MingwSupport()
-
-
Method Details
-
getConsoleName
-
getTerminalWidth
-
waitAndCapture
- Throws:
IOException
InterruptedException
-
getRedirect
This requires --add-opens java.base/java.lang=ALL-UNNAMED- Throws:
ReflectiveOperationException
-