Class WindowsSupport

java.lang.Object
org.fusesource.jansi.internal.WindowsSupport

public class WindowsSupport extends Object
Windows helper to ease Kernel32 usage.
  • Constructor Details

    • WindowsSupport

      public WindowsSupport()
  • Method Details

    • getLastErrorMessage

      public static String 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

      public static int writeConsole(String msg)
    • readConsoleInput

      public static Kernel32.INPUT_RECORD[] readConsoleInput(int count, int dwMilliseconds) throws IOException
      Throws:
      IOException
    • readConsoleInput

      public static Kernel32.INPUT_RECORD[] readConsoleInput(int count) throws IOException
      Throws:
      IOException
    • peekConsoleInput

      public static Kernel32.INPUT_RECORD[] peekConsoleInput(int count, int dwMilliseconds) throws IOException
      Throws:
      IOException
    • peekConsoleInput

      public static Kernel32.INPUT_RECORD[] peekConsoleInput(int count) throws IOException
      Throws:
      IOException
    • flushConsoleInputBuffer

      public static void flushConsoleInputBuffer()