Package org.jline.terminal.impl.jna.win
Interface Kernel32
- All Superinterfaces:
com.sun.jna.AltCallingConvention,com.sun.jna.Library,com.sun.jna.win32.StdCall,com.sun.jna.win32.StdCallLibrary
interface Kernel32
extends com.sun.jna.win32.StdCallLibrary
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classstatic classNested classes/interfaces inherited from interface com.sun.jna.Library
com.sun.jna.Library.HandlerNested classes/interfaces inherited from interface com.sun.jna.win32.StdCallLibrary
com.sun.jna.win32.StdCallLibrary.StdCallCallback -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final Kernel32static final com.sun.jna.Pointerstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from interface com.sun.jna.Library
OPTION_ALLOW_OBJECTS, OPTION_CALLING_CONVENTION, OPTION_CLASSLOADER, OPTION_FUNCTION_MAPPER, OPTION_INVOCATION_MAPPER, OPTION_OPEN_FLAGS, OPTION_STRING_ENCODING, OPTION_STRUCTURE_ALIGNMENT, OPTION_SYMBOL_PROVIDER, OPTION_TYPE_MAPPERFields inherited from interface com.sun.jna.win32.StdCallLibrary
FUNCTION_MAPPER, STDCALL_CONVENTION -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidFillConsoleOutputAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttribute, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfAttrsWritten) voidFillConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char in_cCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) voidintvoidGetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO.ByReference out_lpConsoleCursorInfo) voidGetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpMode) voidGetConsoleScreenBufferInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_SCREEN_BUFFER_INFO out_lpConsoleScreenBufferInfo) com.sun.jna.PointervoidGetNumberOfConsoleInputEvents(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpcNumberOfEvents) com.sun.jna.PointerGetStdHandle(int nStdHandle) voidReadConsoleInput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.INPUT_RECORD[] out_lpBuffer, int in_nLength, com.sun.jna.ptr.IntByReference out_lpNumberOfEventsRead) voidReadConsoleOutput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] out_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpReadRegion) voidReadConsoleOutputA(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] out_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpReadRegion) voidReadConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char[] ouy_lpCharacter, int in_nLength, Kernel32.COORD in_dwReadCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsRead) voidReadConsoleOutputCharacterA(com.sun.jna.Pointer in_hConsoleOutput, byte[] ouy_lpCharacter, int in_nLength, Kernel32.COORD in_dwReadCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsRead) voidScrollConsoleScreenBuffer(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.SMALL_RECT in_lpScrollRectangle, Kernel32.SMALL_RECT in_lpClipRectangle, Kernel32.COORD in_dwDestinationOrigin, Kernel32.CHAR_INFO in_lpFill) voidSetConsoleCP(int in_wCodePageID) voidSetConsoleCtrlHandler(com.sun.jna.Pointer in_opt_HandlerRoutine, boolean in_Add) voidSetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO in_lpConsoleCursorInfo) voidSetConsoleCursorPosition(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwCursorPosition) voidSetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, int in_dwMode) voidSetConsoleOutputCP(int in_wCodePageID) voidSetConsoleScreenBufferSize(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwSize) voidSetConsoleTextAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttributes) voidSetConsoleTitle(String in_lpConsoleTitle) voidSetConsoleWindowInfo(com.sun.jna.Pointer in_hConsoleOutput, boolean in_bAbsolute, Kernel32.SMALL_RECT in_lpConsoleWindow) intWaitForSingleObject(com.sun.jna.Pointer in_hHandle, int in_dwMilliseconds) voidWriteConsoleOutput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] in_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpWriteRegion) voidWriteConsoleOutputA(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] in_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpWriteRegion) voidWriteConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char[] in_lpCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) voidWriteConsoleOutputCharacterA(com.sun.jna.Pointer in_hConsoleOutput, byte[] in_lpCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) voidWriteConsoleW(com.sun.jna.Pointer in_hConsoleOutput, char[] in_lpBuffer, int in_nNumberOfCharsToWrite, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten, com.sun.jna.Pointer reserved_lpReserved)
-
Field Details
-
INSTANCE
-
INVALID_HANDLE_VALUE
static final com.sun.jna.Pointer INVALID_HANDLE_VALUE -
STD_INPUT_HANDLE
static final int STD_INPUT_HANDLE- See Also:
-
STD_OUTPUT_HANDLE
static final int STD_OUTPUT_HANDLE- See Also:
-
STD_ERROR_HANDLE
static final int STD_ERROR_HANDLE- See Also:
-
ENABLE_PROCESSED_INPUT
static final int ENABLE_PROCESSED_INPUT- See Also:
-
ENABLE_LINE_INPUT
static final int ENABLE_LINE_INPUT- See Also:
-
ENABLE_ECHO_INPUT
static final int ENABLE_ECHO_INPUT- See Also:
-
ENABLE_WINDOW_INPUT
static final int ENABLE_WINDOW_INPUT- See Also:
-
ENABLE_MOUSE_INPUT
static final int ENABLE_MOUSE_INPUT- See Also:
-
ENABLE_INSERT_MODE
static final int ENABLE_INSERT_MODE- See Also:
-
ENABLE_QUICK_EDIT_MODE
static final int ENABLE_QUICK_EDIT_MODE- See Also:
-
ENABLE_EXTENDED_FLAGS
static final int ENABLE_EXTENDED_FLAGS- See Also:
-
RIGHT_ALT_PRESSED
static final int RIGHT_ALT_PRESSED- See Also:
-
LEFT_ALT_PRESSED
static final int LEFT_ALT_PRESSED- See Also:
-
RIGHT_CTRL_PRESSED
static final int RIGHT_CTRL_PRESSED- See Also:
-
LEFT_CTRL_PRESSED
static final int LEFT_CTRL_PRESSED- See Also:
-
SHIFT_PRESSED
static final int SHIFT_PRESSED- See Also:
-
FOREGROUND_BLUE
static final int FOREGROUND_BLUE- See Also:
-
FOREGROUND_GREEN
static final int FOREGROUND_GREEN- See Also:
-
FOREGROUND_RED
static final int FOREGROUND_RED- See Also:
-
FOREGROUND_INTENSITY
static final int FOREGROUND_INTENSITY- See Also:
-
BACKGROUND_BLUE
static final int BACKGROUND_BLUE- See Also:
-
BACKGROUND_GREEN
static final int BACKGROUND_GREEN- See Also:
-
BACKGROUND_RED
static final int BACKGROUND_RED- See Also:
-
BACKGROUND_INTENSITY
static final int BACKGROUND_INTENSITY- See Also:
-
FROM_LEFT_1ST_BUTTON_PRESSED
static final int FROM_LEFT_1ST_BUTTON_PRESSED- See Also:
-
RIGHTMOST_BUTTON_PRESSED
static final int RIGHTMOST_BUTTON_PRESSED- See Also:
-
FROM_LEFT_2ND_BUTTON_PRESSED
static final int FROM_LEFT_2ND_BUTTON_PRESSED- See Also:
-
FROM_LEFT_3RD_BUTTON_PRESSED
static final int FROM_LEFT_3RD_BUTTON_PRESSED- See Also:
-
FROM_LEFT_4TH_BUTTON_PRESSED
static final int FROM_LEFT_4TH_BUTTON_PRESSED- See Also:
-
MOUSE_MOVED
static final int MOUSE_MOVED- See Also:
-
DOUBLE_CLICK
static final int DOUBLE_CLICK- See Also:
-
MOUSE_WHEELED
static final int MOUSE_WHEELED- See Also:
-
MOUSE_HWHEELED
static final int MOUSE_HWHEELED- See Also:
-
-
Method Details
-
WaitForSingleObject
int WaitForSingleObject(com.sun.jna.Pointer in_hHandle, int in_dwMilliseconds) -
GetStdHandle
com.sun.jna.Pointer GetStdHandle(int nStdHandle) -
AllocConsole
void AllocConsole() throws com.sun.jna.LastErrorException- Throws:
com.sun.jna.LastErrorException
-
FreeConsole
void FreeConsole() throws com.sun.jna.LastErrorException- Throws:
com.sun.jna.LastErrorException
-
GetConsoleWindow
com.sun.jna.Pointer GetConsoleWindow() -
GetConsoleCP
int GetConsoleCP() -
FillConsoleOutputCharacter
void FillConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char in_cCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
FillConsoleOutputAttribute
void FillConsoleOutputAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttribute, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfAttrsWritten) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
GetConsoleCursorInfo
void GetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO.ByReference out_lpConsoleCursorInfo) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
GetConsoleMode
void GetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpMode) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
GetConsoleScreenBufferInfo
void GetConsoleScreenBufferInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_SCREEN_BUFFER_INFO out_lpConsoleScreenBufferInfo) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
GetNumberOfConsoleInputEvents
void GetNumberOfConsoleInputEvents(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpcNumberOfEvents) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
ReadConsoleInput
void ReadConsoleInput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.INPUT_RECORD[] out_lpBuffer, int in_nLength, com.sun.jna.ptr.IntByReference out_lpNumberOfEventsRead) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleCtrlHandler
void SetConsoleCtrlHandler(com.sun.jna.Pointer in_opt_HandlerRoutine, boolean in_Add) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
ReadConsoleOutput
void ReadConsoleOutput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] out_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpReadRegion) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
ReadConsoleOutputA
void ReadConsoleOutputA(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] out_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpReadRegion) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
ReadConsoleOutputCharacter
void ReadConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char[] ouy_lpCharacter, int in_nLength, Kernel32.COORD in_dwReadCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsRead) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
ReadConsoleOutputCharacterA
void ReadConsoleOutputCharacterA(com.sun.jna.Pointer in_hConsoleOutput, byte[] ouy_lpCharacter, int in_nLength, Kernel32.COORD in_dwReadCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsRead) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleCursorInfo
void SetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO in_lpConsoleCursorInfo) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleCP
void SetConsoleCP(int in_wCodePageID) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleOutputCP
void SetConsoleOutputCP(int in_wCodePageID) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleCursorPosition
void SetConsoleCursorPosition(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwCursorPosition) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleMode
void SetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, int in_dwMode) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleScreenBufferSize
void SetConsoleScreenBufferSize(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwSize) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleTextAttribute
void SetConsoleTextAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttributes) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
SetConsoleTitle
- Throws:
com.sun.jna.LastErrorException
-
SetConsoleWindowInfo
void SetConsoleWindowInfo(com.sun.jna.Pointer in_hConsoleOutput, boolean in_bAbsolute, Kernel32.SMALL_RECT in_lpConsoleWindow) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
WriteConsoleW
void WriteConsoleW(com.sun.jna.Pointer in_hConsoleOutput, char[] in_lpBuffer, int in_nNumberOfCharsToWrite, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten, com.sun.jna.Pointer reserved_lpReserved) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
WriteConsoleOutput
void WriteConsoleOutput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] in_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpWriteRegion) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
WriteConsoleOutputA
void WriteConsoleOutputA(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CHAR_INFO[] in_lpBuffer, Kernel32.COORD in_dwBufferSize, Kernel32.COORD in_dwBufferCoord, Kernel32.SMALL_RECT inout_lpWriteRegion) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
WriteConsoleOutputCharacter
void WriteConsoleOutputCharacter(com.sun.jna.Pointer in_hConsoleOutput, char[] in_lpCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
WriteConsoleOutputCharacterA
void WriteConsoleOutputCharacterA(com.sun.jna.Pointer in_hConsoleOutput, byte[] in_lpCharacter, int in_nLength, Kernel32.COORD in_dwWriteCoord, com.sun.jna.ptr.IntByReference out_lpNumberOfCharsWritten) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-
ScrollConsoleScreenBuffer
void ScrollConsoleScreenBuffer(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.SMALL_RECT in_lpScrollRectangle, Kernel32.SMALL_RECT in_lpClipRectangle, Kernel32.COORD in_dwDestinationOrigin, Kernel32.CHAR_INFO in_lpFill) throws com.sun.jna.LastErrorException - Throws:
com.sun.jna.LastErrorException
-