Top Description Fields Constructors Methods
org.fusesource.jansi.internal

public Class MingwSupport

extends Object
Class Inheritance
Imports
java.io.ByteArrayOutputStream, .File, .FileDescriptor, .IOException, .InputStream, java.lang.reflect.Constructor, .Field, java.util.regex.Matcher, .Pattern

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

Modifier and TypeField and Description
private final Pattern
private final String
private final String

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public String
getConsoleName(boolean stdout)

private ProcessBuilder.Redirect
getRedirect(FileDescriptor fd)

This requires --add-opens java.base/java.lang=ALL-UNNAMED

public int
private static String
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

columnsPatternsback to summary
private final Pattern columnsPatterns
sttyCommandback to summary
private final String sttyCommand
ttyCommandback to summary
private final String ttyCommand

Constructor Detail

MingwSupportback to summary
public MingwSupport()

Method Detail

getConsoleNameback to summary
public String getConsoleName(boolean stdout)
getRedirectback to summary
private ProcessBuilder.Redirect getRedirect(FileDescriptor fd) throws ReflectiveOperationException

This requires --add-opens java.base/java.lang=ALL-UNNAMED

getTerminalWidthback to summary
public int getTerminalWidth(String name)
waitAndCaptureback to summary
private static String waitAndCapture(Process p) throws IOException, InterruptedException