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 Classes Modifier and Type Interface Description static class
Kernel32.CHAR_INFO
static class
Kernel32.CONSOLE_CURSOR_INFO
static class
Kernel32.CONSOLE_SCREEN_BUFFER_INFO
static class
Kernel32.COORD
static class
Kernel32.FOCUS_EVENT_RECORD
static class
Kernel32.INPUT_RECORD
static class
Kernel32.KEY_EVENT_RECORD
static class
Kernel32.MENU_EVENT_RECORD
static class
Kernel32.MOUSE_EVENT_RECORD
static class
Kernel32.SMALL_RECT
static class
Kernel32.UnionChar
static class
Kernel32.WINDOW_BUFFER_SIZE_RECORD
-
Field Summary
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
AllocConsole()
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)
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)
void
FreeConsole()
int
GetConsoleCP()
void
GetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO.ByReference out_lpConsoleCursorInfo)
void
GetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpMode)
void
GetConsoleScreenBufferInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_SCREEN_BUFFER_INFO out_lpConsoleScreenBufferInfo)
com.sun.jna.Pointer
GetConsoleWindow()
void
GetNumberOfConsoleInputEvents(com.sun.jna.Pointer in_hConsoleOutput, com.sun.jna.ptr.IntByReference out_lpcNumberOfEvents)
com.sun.jna.Pointer
GetStdHandle(int nStdHandle)
void
ReadConsoleInput(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.INPUT_RECORD[] out_lpBuffer, int in_nLength, com.sun.jna.ptr.IntByReference out_lpNumberOfEventsRead)
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)
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)
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)
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)
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)
void
SetConsoleCP(int in_wCodePageID)
void
SetConsoleCtrlHandler(com.sun.jna.Pointer in_opt_HandlerRoutine, boolean in_Add)
void
SetConsoleCursorInfo(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.CONSOLE_CURSOR_INFO in_lpConsoleCursorInfo)
void
SetConsoleCursorPosition(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwCursorPosition)
void
SetConsoleMode(com.sun.jna.Pointer in_hConsoleOutput, int in_dwMode)
void
SetConsoleOutputCP(int in_wCodePageID)
void
SetConsoleScreenBufferSize(com.sun.jna.Pointer in_hConsoleOutput, Kernel32.COORD in_dwSize)
void
SetConsoleTextAttribute(com.sun.jna.Pointer in_hConsoleOutput, short in_wAttributes)
void
SetConsoleTitle(java.lang.String in_lpConsoleTitle)
void
SetConsoleWindowInfo(com.sun.jna.Pointer in_hConsoleOutput, boolean in_bAbsolute, Kernel32.SMALL_RECT in_lpConsoleWindow)
int
WaitForSingleObject(com.sun.jna.Pointer in_hHandle, int in_dwMilliseconds)
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)
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)
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)
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)
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)
-
-
-
Field Detail
-
INSTANCE
static final Kernel32 INSTANCE
-
INVALID_HANDLE_VALUE
static final com.sun.jna.Pointer INVALID_HANDLE_VALUE
-
STD_INPUT_HANDLE
static final int STD_INPUT_HANDLE
- See Also:
- Constant Field Values
-
STD_OUTPUT_HANDLE
static final int STD_OUTPUT_HANDLE
- See Also:
- Constant Field Values
-
STD_ERROR_HANDLE
static final int STD_ERROR_HANDLE
- See Also:
- Constant Field Values
-
ENABLE_PROCESSED_INPUT
static final int ENABLE_PROCESSED_INPUT
- See Also:
- Constant Field Values
-
ENABLE_LINE_INPUT
static final int ENABLE_LINE_INPUT
- See Also:
- Constant Field Values
-
ENABLE_ECHO_INPUT
static final int ENABLE_ECHO_INPUT
- See Also:
- Constant Field Values
-
ENABLE_WINDOW_INPUT
static final int ENABLE_WINDOW_INPUT
- See Also:
- Constant Field Values
-
ENABLE_MOUSE_INPUT
static final int ENABLE_MOUSE_INPUT
- See Also:
- Constant Field Values
-
ENABLE_INSERT_MODE
static final int ENABLE_INSERT_MODE
- See Also:
- Constant Field Values
-
ENABLE_QUICK_EDIT_MODE
static final int ENABLE_QUICK_EDIT_MODE
- See Also:
- Constant Field Values
-
ENABLE_EXTENDED_FLAGS
static final int ENABLE_EXTENDED_FLAGS
- See Also:
- Constant Field Values
-
RIGHT_ALT_PRESSED
static final int RIGHT_ALT_PRESSED
- See Also:
- Constant Field Values
-
LEFT_ALT_PRESSED
static final int LEFT_ALT_PRESSED
- See Also:
- Constant Field Values
-
RIGHT_CTRL_PRESSED
static final int RIGHT_CTRL_PRESSED
- See Also:
- Constant Field Values
-
LEFT_CTRL_PRESSED
static final int LEFT_CTRL_PRESSED
- See Also:
- Constant Field Values
-
SHIFT_PRESSED
static final int SHIFT_PRESSED
- See Also:
- Constant Field Values
-
FOREGROUND_BLUE
static final int FOREGROUND_BLUE
- See Also:
- Constant Field Values
-
FOREGROUND_GREEN
static final int FOREGROUND_GREEN
- See Also:
- Constant Field Values
-
FOREGROUND_RED
static final int FOREGROUND_RED
- See Also:
- Constant Field Values
-
FOREGROUND_INTENSITY
static final int FOREGROUND_INTENSITY
- See Also:
- Constant Field Values
-
BACKGROUND_BLUE
static final int BACKGROUND_BLUE
- See Also:
- Constant Field Values
-
BACKGROUND_GREEN
static final int BACKGROUND_GREEN
- See Also:
- Constant Field Values
-
BACKGROUND_RED
static final int BACKGROUND_RED
- See Also:
- Constant Field Values
-
BACKGROUND_INTENSITY
static final int BACKGROUND_INTENSITY
- See Also:
- Constant Field Values
-
FROM_LEFT_1ST_BUTTON_PRESSED
static final int FROM_LEFT_1ST_BUTTON_PRESSED
- See Also:
- Constant Field Values
-
RIGHTMOST_BUTTON_PRESSED
static final int RIGHTMOST_BUTTON_PRESSED
- See Also:
- Constant Field Values
-
FROM_LEFT_2ND_BUTTON_PRESSED
static final int FROM_LEFT_2ND_BUTTON_PRESSED
- See Also:
- Constant Field Values
-
FROM_LEFT_3RD_BUTTON_PRESSED
static final int FROM_LEFT_3RD_BUTTON_PRESSED
- See Also:
- Constant Field Values
-
FROM_LEFT_4TH_BUTTON_PRESSED
static final int FROM_LEFT_4TH_BUTTON_PRESSED
- See Also:
- Constant Field Values
-
MOUSE_MOVED
static final int MOUSE_MOVED
- See Also:
- Constant Field Values
-
DOUBLE_CLICK
static final int DOUBLE_CLICK
- See Also:
- Constant Field Values
-
MOUSE_WHEELED
static final int MOUSE_WHEELED
- See Also:
- Constant Field Values
-
MOUSE_HWHEELED
static final int MOUSE_HWHEELED
- See Also:
- Constant Field Values
-
-
Method Detail
-
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
void SetConsoleTitle(java.lang.String in_lpConsoleTitle) throws com.sun.jna.LastErrorException
- 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
-
-