Class WindowsSupport
java.lang.Object
org.fusesource.jansi.internal.WindowsSupport
Windows helper to ease Kernel32 usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidstatic intstatic Stringstatic intstatic intstatic Kernel32.INPUT_RECORD[]peekConsoleInput(int count) static Kernel32.INPUT_RECORD[]peekConsoleInput(int count, int dwMilliseconds) static intreadByte()///////////////////////////////////////////////////////////////////////static Kernel32.INPUT_RECORD[]readConsoleInput(int count) static Kernel32.INPUT_RECORD[]readConsoleInput(int count, int dwMilliseconds) static voidsetConsoleMode(int mode) static intwriteConsole(String msg)
-
Constructor Details
-
WindowsSupport
public WindowsSupport()
-
-
Method Details
-
getLastErrorMessage
-
readByte
public static int readByte()/////////////////////////////////////////////////////////////////////// -
getConsoleMode
public static int getConsoleMode() -
setConsoleMode
public static void setConsoleMode(int mode) -
getWindowsTerminalWidth
public static int getWindowsTerminalWidth() -
getWindowsTerminalHeight
public static int getWindowsTerminalHeight() -
writeConsole
-
readConsoleInput
public static Kernel32.INPUT_RECORD[] readConsoleInput(int count, int dwMilliseconds) throws IOException - Throws:
IOException
-
readConsoleInput
- Throws:
IOException
-
peekConsoleInput
public static Kernel32.INPUT_RECORD[] peekConsoleInput(int count, int dwMilliseconds) throws IOException - Throws:
IOException
-
peekConsoleInput
- Throws:
IOException
-
flushConsoleInputBuffer
public static void flushConsoleInputBuffer()
-