org.fusesource.jansi.internal
Class WindowsSupport

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

public class WindowsSupport
extends java.lang.Object

Author:
Hiram Chirino

Constructor Summary
WindowsSupport()
           
 
Method Summary
static void flushConsoleInputBuffer()
           
static int getConsoleMode()
           
static java.lang.String getLastErrorMessage()
           
static int getWindowsTerminalHeight()
           
static int getWindowsTerminalWidth()
           
static Kernel32.INPUT_RECORD[] peekConsoleInput(int count)
           
static int readByte()
           
static Kernel32.INPUT_RECORD[] readConsoleInput(int count)
           
static void setConsoleMode(int mode)
           
static int writeConsole(java.lang.String msg)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WindowsSupport

public WindowsSupport()
Method Detail

getLastErrorMessage

public static java.lang.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(java.lang.String msg)

readConsoleInput

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

peekConsoleInput

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

flushConsoleInputBuffer

public static void flushConsoleInputBuffer()


Copyright © 2009-2016 FuseSource, Corp.. All Rights Reserved.