Package org.fusesource.jansi.internal
Class WindowsSupport
java.lang.Object
org.fusesource.jansi.internal.WindowsSupport
Windows helper to ease Kernel32 usage.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic void
static int
static String
static int
static int
static Kernel32.INPUT_RECORD[]
peekConsoleInput
(int count) static Kernel32.INPUT_RECORD[]
peekConsoleInput
(int count, int dwMilliseconds) static int
readByte()
static Kernel32.INPUT_RECORD[]
readConsoleInput
(int count) static Kernel32.INPUT_RECORD[]
readConsoleInput
(int count, int dwMilliseconds) static void
setConsoleMode
(int mode) static int
writeConsole
(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()
-