Josh
Native console access wrapper for Java
A B C D E F G H I J K L M N O P R S T W Y

A

addAttributes(int) - Method in class com.yifanlu.Josh.ConsoleAttribute
Mixes another attribute Use the constants like ConsoleAttribute.COMMON_LVB_LEADING_BYTE for the attribute and this will use the OR operator to add the attribute to the object.
attributes - Variable in class com.yifanlu.Josh.ConsoleAttribute
 

B

BACKGROUND_BLUE - Static variable in class com.yifanlu.Josh.ConsoleColor
Background color constant.
BACKGROUND_GREEN - Static variable in class com.yifanlu.Josh.ConsoleColor
Background color constant.
BACKGROUND_INTENSITY - Static variable in class com.yifanlu.Josh.ConsoleColor
Background color constant.
BACKGROUND_RED - Static variable in class com.yifanlu.Josh.ConsoleColor
Background color constant.
Beep() - Static method in class com.yifanlu.Josh.Josh
Generates a single beep of 800Hz for 200 miliseconds.
Beep(int, int) - Static method in class com.yifanlu.Josh.Josh
Generates simple tones on the speaker.
BLACK(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a black color attribute.
BLACK() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as BLACK(false)
BLUE(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a blue color attribute.
BLUE() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as BLUE(false)

C

CAPSLOCK_ON - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
clearConsole() - Method in class com.yifanlu.Josh.JoshOutput
Clears the console buffer to a blank black screen.
clearConsole(ConsoleColor) - Method in class com.yifanlu.Josh.JoshOutput
Clears the console buffer and sets the background color.
com.yifanlu.Josh - package com.yifanlu.Josh
 
COMMON_LVB_GRID_HORIZONTAL - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
COMMON_LVB_GRID_LVERTICAL - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
COMMON_LVB_GRID_RVERTICAL - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
COMMON_LVB_LEADING_BYTE - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
COMMON_LVB_REVERSE_VIDEO - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
COMMON_LVB_TRAILING_BYTE - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
COMMON_LVB_UNDERSCORE - Static variable in class com.yifanlu.Josh.ConsoleAttribute
Character byte change.
CONSOLE_MOUSE_DOWN - Static variable in class com.yifanlu.Josh.ConsoleSelectionInfo
The flag of the selection.
CONSOLE_MOUSE_SELECTION - Static variable in class com.yifanlu.Josh.ConsoleSelectionInfo
The flag of the selection.
CONSOLE_NO_SELECTION - Static variable in class com.yifanlu.Josh.ConsoleSelectionInfo
The flag of the selection.
CONSOLE_SELECTION_IN_PROGRESS - Static variable in class com.yifanlu.Josh.ConsoleSelectionInfo
The flag of the selection.
CONSOLE_SELECTION_NOT_EMPTY - Static variable in class com.yifanlu.Josh.ConsoleSelectionInfo
The flag of the selection.
ConsoleAttribute - Class in com.yifanlu.Josh
Stores the attribute of a character.
ConsoleAttribute() - Constructor for class com.yifanlu.Josh.ConsoleAttribute
Create a new object with no attributes.
ConsoleAttribute(int) - Constructor for class com.yifanlu.Josh.ConsoleAttribute
Create a new attribute object with an int.
ConsoleBuffer - Class in com.yifanlu.Josh
Represents a new screen buffer.
ConsoleBuffer() - Constructor for class com.yifanlu.Josh.ConsoleBuffer
Provides simplified access to the output buffer in this screen buffer.
ConsoleBuffer(boolean, boolean) - Constructor for class com.yifanlu.Josh.ConsoleBuffer
Creates a new console buffer.
ConsoleCharInfo - Class in com.yifanlu.Josh
Specifies a character and its attributes.
ConsoleCharInfo(char, ConsoleAttribute) - Constructor for class com.yifanlu.Josh.ConsoleCharInfo
Creates a new character with attributes.
ConsoleColor - Class in com.yifanlu.Josh
Stores the color attributes of console output.
ConsoleColor(boolean, boolean, boolean, boolean, boolean) - Constructor for class com.yifanlu.Josh.ConsoleColor
Create a new color object by specifying which colors to show.
ConsoleCoord - Class in com.yifanlu.Josh
Defines the coordinates of a character cell in a console screen buffer.
ConsoleCoord(int, int) - Constructor for class com.yifanlu.Josh.ConsoleCoord
Creates a point that represents a block in the console window.
ConsoleCursorInfo - Class in com.yifanlu.Josh
Contains information about the console cursor.
ConsoleCursorInfo() - Constructor for class com.yifanlu.Josh.ConsoleCursorInfo
Creates a default cursor size of 25 that is visible.
ConsoleCursorInfo(int, boolean) - Constructor for class com.yifanlu.Josh.ConsoleCursorInfo
Creates a new cursor info object.
ConsoleEvent - Class in com.yifanlu.Josh
Describes an input event in the console input buffer.
ConsoleEvent() - Constructor for class com.yifanlu.Josh.ConsoleEvent
 
ConsoleEventBufferChanged - Class in com.yifanlu.Josh
Describes a change in the size of the console screen buffer.
ConsoleEventBufferChanged(ConsoleCoord) - Constructor for class com.yifanlu.Josh.ConsoleEventBufferChanged
Creates a new window buffer size change event.
ConsoleEventFocus - Class in com.yifanlu.Josh
Describes a focus event.
ConsoleEventFocus(boolean) - Constructor for class com.yifanlu.Josh.ConsoleEventFocus
Creates a new console focus change event.
ConsoleEventKeyboard - Class in com.yifanlu.Josh
Describes a keyboard input event.
ConsoleEventKeyboard(boolean, int, int, int, char, int) - Constructor for class com.yifanlu.Josh.ConsoleEventKeyboard
Creates a new keyboard event.
ConsoleEventMenu - Class in com.yifanlu.Josh
Describes a menu event.
ConsoleEventMenu(int) - Constructor for class com.yifanlu.Josh.ConsoleEventMenu
Creates a new console menu event.
ConsoleEventMouse - Class in com.yifanlu.Josh
Describes a mouse input event.
ConsoleEventMouse(ConsoleCoord, int, int, int) - Constructor for class com.yifanlu.Josh.ConsoleEventMouse
Creates a mouse event.
ConsoleFontInfo - Class in com.yifanlu.Josh
Contains information for a console font.
ConsoleFontInfo(int, ConsoleCoord) - Constructor for class com.yifanlu.Josh.ConsoleFontInfo
Creates a new console font info.
ConsoleHandle - Class in com.yifanlu.Josh
Contains a memory location, where a buffer is located.
ConsoleHandle(long) - Constructor for class com.yifanlu.Josh.ConsoleHandle
Creates a handle.
ConsoleHistoryInfo - Class in com.yifanlu.Josh
Contains information about the console history.
ConsoleHistoryInfo(int, int, int) - Constructor for class com.yifanlu.Josh.ConsoleHistoryInfo
Creates a new console history infomation.
ConsoleScreenBufferInfo - Class in com.yifanlu.Josh
Contains information about a console screen buffer.
ConsoleScreenBufferInfo(ConsoleCoord, ConsoleCoord, int, ConsoleSmallRect, ConsoleCoord) - Constructor for class com.yifanlu.Josh.ConsoleScreenBufferInfo
Creates a new console screen buffer infomation.
ConsoleSelectionInfo - Class in com.yifanlu.Josh
Contains information for a console selection.
ConsoleSelectionInfo(int, ConsoleCoord, ConsoleSmallRect) - Constructor for class com.yifanlu.Josh.ConsoleSelectionInfo
Creates a new console selection infomation.
ConsoleSmallRect - Class in com.yifanlu.Josh
Defines the coordinates of the upper left and lower right corners of a rectangle.
ConsoleSmallRect(int, int, int, int) - Constructor for class com.yifanlu.Josh.ConsoleSmallRect
Creates a new small rectangle.
ConsoleSmallRect(short, short, short, short) - Constructor for class com.yifanlu.Josh.ConsoleSmallRect
Creates a new small rectangle.
ConsoleSmallRect(ConsoleCoord, ConsoleCoord) - Constructor for class com.yifanlu.Josh.ConsoleSmallRect
Creates a new small rectangle.
CRYAN(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a cryan color attribute.
CRYAN() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as CRYAN(false)

D

DOUBLE_CLICK - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse event flag.

E

ENABLE_ECHO_INPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_INSERT_MODE - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_LINE_INPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_MOUSE_INPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_PROCESSED_INPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_PROCESSED_OUTPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_QUICK_EDIT_MODE - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_WINDOW_INPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENABLE_WRAP_AT_EOL_OUTPUT - Static variable in class com.yifanlu.Josh.JoshOutBuffer
Used in JoshOutBuffer.getConsoleMode() and JoshOutBuffer.setConsoleMode(int) to modify the console mode.
ENHANCED_KEY - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleAttribute
Compares two Objects, if both are ConsoleAttribute and have the same attributes, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleCharInfo
Compares two Objects, if both are ConsoleCharInfo and have the same character and attributes, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleCoord
Compares two Objects, if both are ConsoleCoord and have the same X and Y, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleCursorInfo
Compares two Objects, if both are ConsoleCursorInfo and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleEventBufferChanged
Compares two Objects, if both are ConsoleEventBufferChanged and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleEventFocus
Compares two Objects, if both are ConsoleEventFocus and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Compares two Objects, if both are ConsoleEventKeyboard and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleEventMenu
Compares two Objects, if both are ConsoleEventMenu and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleEventMouse
Compares two Objects, if both are ConsoleEventMouse and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleFontInfo
Compares two Objects, if both are ConsoleFontInfo and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleHandle
Compares two Objects, if both are ConsoleHandle and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Compares two Objects, if both are ConsoleHistoryInfo and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Compares two Objects, if both are ConsoleScreenBufferInfo and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleSelectionInfo
Compares two Objects, if both are ConsoleSelectionInfo and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.ConsoleSmallRect
Compares two Objects, if both are ConsoleSmallRect and have the same values, they are equal.
equals(Object) - Method in class com.yifanlu.Josh.JoshBuffer
Compares two Objects, if both are JoshBuffer and have the same handle, they are equal.
eventType - Variable in class com.yifanlu.Josh.ConsoleEvent
 

F

fillConsoleOutputAttribute(ConsoleCoord, int, ConsoleAttribute) - Method in class com.yifanlu.Josh.JoshOutBuffer
Sets the character attributes for a specified number of character cells, beginning at the specified coordinates in a screen buffer.
fillConsoleOutputCharacter(ConsoleCoord, int, char) - Method in class com.yifanlu.Josh.JoshOutBuffer
Writes a character to the console screen buffer a specified number of times, beginning at the specified coordinates.
FOCUS_EVENT - Static variable in class com.yifanlu.Josh.ConsoleEvent
Different type of event.
FOREGROUND_BLUE - Static variable in class com.yifanlu.Josh.ConsoleColor
Forground color constant.
FOREGROUND_GREEN - Static variable in class com.yifanlu.Josh.ConsoleColor
Forground color constant.
FOREGROUND_INTENSITY - Static variable in class com.yifanlu.Josh.ConsoleColor
Forground color constant.
FOREGROUND_RED - Static variable in class com.yifanlu.Josh.ConsoleColor
Forground color constant.
FROM_LEFT_1ST_BUTTON_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse button.
FROM_LEFT_2ND_BUTTON_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse button.
FROM_LEFT_3RD_BUTTON_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse button.
FROM_LEFT_4TH_BUTTON_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse button.

G

getAttributes() - Method in class com.yifanlu.Josh.ConsoleAttribute
Gets the attributes stored in the object.
getBottom() - Method in class com.yifanlu.Josh.ConsoleSmallRect
Gets the lower right y-coordinate of the rectangle.
getButtonState() - Method in class com.yifanlu.Josh.ConsoleEventMouse
Gets the mouse button pressed.
getChar() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Gets the key pressed as a char.
getCharacter() - Method in class com.yifanlu.Josh.ConsoleCharInfo
Gets the char stored in the object.
getCommandId() - Method in class com.yifanlu.Josh.ConsoleEventMenu
Returns the command id.
getConsoleCursorInfo() - Method in class com.yifanlu.Josh.JoshOutBuffer
Retrieves information about the size and visibility of the cursor for the specified console screen buffer.
getConsoleFontSize() - Method in class com.yifanlu.Josh.JoshOutBuffer
XP Only: Retrieves the size of the font used by the specified console screen buffer.
getConsoleHistoryInfo() - Static method in class com.yifanlu.Josh.Josh
Vista Only: Retrieves the history settings for the calling process's console.
getConsoleMode() - Method in class com.yifanlu.Josh.JoshOutBuffer
Retrieves the current input mode of a console's input buffer or the current output mode of a console screen buffer.
getConsoleOrginialTitle() - Static method in class com.yifanlu.Josh.Josh
Vista Only: Retrieves the original title for the current console window.
getConsoleScreenBufferInfo() - Method in class com.yifanlu.Josh.JoshOutBuffer
Retrieves information about the specified console screen buffer.
getConsoleSelectionInfo() - Static method in class com.yifanlu.Josh.Josh
XP Only: Retrieves information about the current console selection.
getConsoleTitle() - Static method in class com.yifanlu.Josh.Josh
Retrieves the title for the current console window.
getConsoleWindow() - Static method in class com.yifanlu.Josh.Josh
Retrieves the window handle used by the console associated with the calling process.
getControlKeyState() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Gets any control keys pressed.
getControlKeyState() - Method in class com.yifanlu.Josh.ConsoleEventMouse
Gets any control keys pressed.
getCurrentConsoleFont(boolean) - Method in class com.yifanlu.Josh.JoshOutBuffer
XP Only: Retrieves information about the current console font.
getCursorPosition() - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Gets the location of the cursor in the buffer info.
getEventFlags() - Method in class com.yifanlu.Josh.ConsoleEventMouse
Gets the type of mouse input (click, double click, etc).
getEventType() - Method in class com.yifanlu.Josh.ConsoleEvent
Gets the event type.
getFlags() - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Gets the history buffer flags.
getFlags() - Method in class com.yifanlu.Josh.ConsoleSelectionInfo
Gets the flags of the selection.
getFont() - Method in class com.yifanlu.Josh.ConsoleFontInfo
Gets the font.
getFontSize() - Method in class com.yifanlu.Josh.ConsoleFontInfo
Gets the font size.
getHandle() - Method in class com.yifanlu.Josh.JoshBuffer
Gets the memory location of this buffer.
getHistoryBufferSize() - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Gets the size of the history buffer.
getKeyDown() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Is the key held down?
getLargestConsoleWindowSize() - Method in class com.yifanlu.Josh.JoshOutBuffer
Retrieves the size of the largest possible console window, based on the current font and the size of the display.
getLeft() - Method in class com.yifanlu.Josh.ConsoleSmallRect
Gets the upper left x-coordinate of the rectangle.
getMaximumWindowSize() - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Gets the largest size of the buffer info.
getMemoryLocation() - Method in class com.yifanlu.Josh.ConsoleHandle
Gets the memory location.
getMousePosition() - Method in class com.yifanlu.Josh.ConsoleEventMouse
Gets the current mouse position.
getNumberOfConsoleInputEvents() - Method in class com.yifanlu.Josh.JoshInBuffer
Retrieves the number of unread input records in the console's input buffer.
getNumberOfConsoleMouseButtons() - Static method in class com.yifanlu.Josh.Josh
Retrieves the number of buttons on the mouse used by the current console.
getNumberOfHistoryBuffers() - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Gets the number of history buffers.
getRepeatCount() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Gets how many times the key is pressed.
getRight() - Method in class com.yifanlu.Josh.ConsoleSmallRect
Gets the lower right x-coordinate of the rectangle.
getSelection() - Method in class com.yifanlu.Josh.ConsoleSelectionInfo
Gets the size of the selection.
getSelectionAnchor() - Method in class com.yifanlu.Josh.ConsoleSelectionInfo
Gets the anchor coordinates for the selection.
getSetFocus() - Method in class com.yifanlu.Josh.ConsoleEventFocus
Returns the focus state.
getSize() - Method in class com.yifanlu.Josh.ConsoleCursorInfo
Gets the size.
getSize() - Method in class com.yifanlu.Josh.ConsoleEventBufferChanged
Gets the size of the buffer.
getSize() - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Gets the size of the console buffer in the buffer info.
getStdHandle(int) - Static method in class com.yifanlu.Josh.Josh
Retrieves a handle to the specified standard device (standard input, standard output, or standard error).
getTop() - Method in class com.yifanlu.Josh.ConsoleSmallRect
Gets the upper left y-coordinate of the rectangle.
getVirtualKeyCode() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Gets the key number on the current keyboard.
getVirtualScanCode() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Gets the scan code on the current keyboard.
getVisible() - Method in class com.yifanlu.Josh.ConsoleCursorInfo
Gets the visibility.
getWindow() - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Gets the size of the window in the buffer info.
getX() - Method in class com.yifanlu.Josh.ConsoleCoord
Gets the X coordinate.
getY() - Method in class com.yifanlu.Josh.ConsoleCoord
Gets the Y coordinate.
GREEN(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a green color attribute.
GREEN() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as GREEN(false)

H

hashCode() - Method in class com.yifanlu.Josh.ConsoleAttribute
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleCharInfo
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleCoord
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleCursorInfo
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleEventBufferChanged
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleEventFocus
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleEventMenu
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleEventMouse
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleFontInfo
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleHandle
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleSelectionInfo
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.ConsoleSmallRect
Returns a hash code.
hashCode() - Method in class com.yifanlu.Josh.JoshBuffer
Returns a hash code.
HISTORY_NO_DUP_FLAG - Static variable in class com.yifanlu.Josh.ConsoleHistoryInfo
Flag value: Duplicate entries will not be stored in the history buffer.

I

in - Static variable in class com.yifanlu.Josh.Josh
Contains functions for reading keyboard input from the standard input buffer.
inBuffer - Static variable in class com.yifanlu.Josh.Josh
Contains functions for reading events from the standard input buffer.
isFullScreen() - Static method in class com.yifanlu.Josh.Josh
XP Only: Sees if the current console window is in fullscreen mode.

J

Josh - Class in com.yifanlu.Josh
Provides native access to the console.
Josh() - Constructor for class com.yifanlu.Josh.Josh
 
JoshBuffer - Class in com.yifanlu.Josh
Contains a handle to a memory location.
JoshBuffer() - Constructor for class com.yifanlu.Josh.JoshBuffer
 
JoshInBuffer - Class in com.yifanlu.Josh
Provides native access to the input buffer.
JoshInBuffer(ConsoleHandle) - Constructor for class com.yifanlu.Josh.JoshInBuffer
Creates a new input buffer for reading console events.
JoshInput - Class in com.yifanlu.Josh
Provides simplified access to the input buffer.
JoshInput(ConsoleHandle) - Constructor for class com.yifanlu.Josh.JoshInput
Creates a new input buffer for reading keyboard inputs.
JoshOutBuffer - Class in com.yifanlu.Josh
Provides native access to the output buffer.
JoshOutBuffer(ConsoleHandle) - Constructor for class com.yifanlu.Josh.JoshOutBuffer
Creates a new output buffer for direct manipulation of the output buffer.
JoshOutput - Class in com.yifanlu.Josh
Provides simplified access to the output buffer.
JoshOutput(ConsoleHandle) - Constructor for class com.yifanlu.Josh.JoshOutput
Creates a new output buffer for simplified manipulation of the output buffer.

K

KEY_EVENT - Static variable in class com.yifanlu.Josh.ConsoleEvent
Different type of event.

L

LEFT_ALT_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
LEFT_CTRL_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
LibraryLoader - Class in com.yifanlu.Josh
Used to load the JoshCore library.
LibraryLoader() - Constructor for class com.yifanlu.Josh.LibraryLoader
 
loadJosh() - Static method in class com.yifanlu.Josh.LibraryLoader
Loads JoshCore.dll to memory.

M

MAGENTA(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a magenta color attribute.
MAGENTA() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as MAGENTA(false)
makeBackground() - Method in class com.yifanlu.Josh.ConsoleColor
Makes any color in the attribute a background color (highlight).
makeForeground() - Method in class com.yifanlu.Josh.ConsoleColor
Makes any color in the attribute a foreground color (text color).
MENU_EVENT - Static variable in class com.yifanlu.Josh.ConsoleEvent
Different type of event.
MOUSE_EVENT - Static variable in class com.yifanlu.Josh.ConsoleEvent
Different type of event.
MOUSE_HWHEELED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse event flag.
MOUSE_MOVED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse event flag.
MOUSE_WHEELED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse event flag.

N

NUMLOCK_ON - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.

O

OSNotSupportedException - Exception in com.yifanlu.Josh
This exception is thrown if a method calls a native function in Windows that isn't supported by the current version.
OSNotSupportedException(String) - Constructor for exception com.yifanlu.Josh.OSNotSupportedException
Creates a new exception with the required OS version as a String (JNI likes this).
OSNotSupportedException(int) - Constructor for exception com.yifanlu.Josh.OSNotSupportedException
Creates a new exception with the required OS version.
out - Variable in class com.yifanlu.Josh.ConsoleBuffer
Contains output functions.
out - Static variable in class com.yifanlu.Josh.Josh
Contains simplified output functions for the standard output buffer.
outBuffer - Variable in class com.yifanlu.Josh.ConsoleBuffer
Provides native access to the output buffer in this screen buffer.
outBuffer - Static variable in class com.yifanlu.Josh.Josh
Contains native output functions for the standard output buffer.

P

peekConsoleInput() - Method in class com.yifanlu.Josh.JoshInBuffer
Reads data from the specified console input buffer without removing it from the buffer.
print(String) - Method in class com.yifanlu.Josh.JoshOutput
Print a string.
printcolorln(Object...) - Method in class com.yifanlu.Josh.JoshOutput
Print a String with a foreground color and then change the character color back to defaults and terminate the line.
printhighlightln(Object...) - Method in class com.yifanlu.Josh.JoshOutput
Print a String with a background color and then change the character color back to defaults and terminate the line.
println(String) - Method in class com.yifanlu.Josh.JoshOutput
Print a String and then terminate the line.

R

readChar() - Method in class com.yifanlu.Josh.JoshInput
Reads the first character from the console input buffer and removes it from the buffer.
readConsoleInput() - Method in class com.yifanlu.Josh.JoshInBuffer
Reads data from a console input buffer and removes it from the buffer.
readConsoleOutput(ConsoleCoord, ConsoleCoord, ConsoleSmallRect) - Method in class com.yifanlu.Josh.JoshOutBuffer
Reads character and color attribute data from a rectangular block of character cells in a console screen buffer, and the function writes the data to a rectangular block at a specified location in the destination buffer.
readConsoleOutputAttribute(ConsoleCoord, int) - Method in class com.yifanlu.Josh.JoshOutBuffer
Reads a specified number of character attributes from consecutive cells of a console screen buffer, beginning at a specified location.
readConsoleOutputChar(ConsoleCoord, int) - Method in class com.yifanlu.Josh.JoshOutBuffer
Reads a number of characters from consecutive cells of a console screen buffer, beginning at a specified location.
readDouble() - Method in class com.yifanlu.Josh.JoshInput
Reads the first character from the console input buffer and removes it from the buffer.
readInt() - Method in class com.yifanlu.Josh.JoshInput
Reads the first character from the console input buffer and removes it from the buffer.
readLine() - Method in class com.yifanlu.Josh.JoshInput
Reads character input from the console input buffer and removes it from the buffer.
RED(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a red color attribute.
RED() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as RED(false)
RIGHT_ALT_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
RIGHT_CTRL_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
RIGHTMOST_BUTTON_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEventMouse
Constant value for mouse button.

S

scrollConsoleScreenBuffer(ConsoleSmallRect, ConsoleCoord) - Method in class com.yifanlu.Josh.JoshOutBuffer
Moves a block of data in a screen buffer without a clip block or intersection fill.
scrollConsoleScreenBuffer(ConsoleSmallRect, ConsoleCoord, ConsoleCharInfo) - Method in class com.yifanlu.Josh.JoshOutBuffer
Moves a block of data in a screen buffer without a clip block.
scrollConsoleScreenBuffer(ConsoleSmallRect, ConsoleSmallRect, ConsoleCoord, ConsoleCharInfo) - Method in class com.yifanlu.Josh.JoshOutBuffer
Moves a block of data in a screen buffer.
SCROLLLOCK_ON - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
setAttributes(int) - Method in class com.yifanlu.Josh.ConsoleAttribute
Sets the attributes
setBottom(short) - Method in class com.yifanlu.Josh.ConsoleSmallRect
Sets the lower right y-coordinate of the rectangle.
setButtonState(int) - Method in class com.yifanlu.Josh.ConsoleEventMouse
Sets the mouse button pressed.
setChar(char) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Sets the key pressed as a char.
setCharacter(char) - Method in class com.yifanlu.Josh.ConsoleCharInfo
Sets the character
setConsoleActiveScreenBuffer(ConsoleBuffer) - Static method in class com.yifanlu.Josh.Josh
Sets the specified screen buffer to be the currently displayed console screen buffer.
setConsoleCursorInfo(ConsoleCursorInfo) - Method in class com.yifanlu.Josh.JoshOutBuffer
Sets the size and visibility of the cursor for the specified console screen buffer.
setConsoleCursorPosition(ConsoleCoord) - Method in class com.yifanlu.Josh.JoshOutBuffer
Sets the cursor position in the specified console screen buffer.
setConsoleHistoryInfo(ConsoleHistoryInfo) - Static method in class com.yifanlu.Josh.Josh
Vista Only: Sets the history settings for the calling process's console.
setConsoleMode(int) - Method in class com.yifanlu.Josh.JoshOutBuffer
Sets the input mode of a console's input buffer or the output mode of a console screen buffer.
setConsoleScreenBufferInfo(ConsoleScreenBufferInfo) - Method in class com.yifanlu.Josh.JoshOutBuffer
Vista Only: Sets extended information about the specified console screen buffer.
setConsoleTextAttribute(ConsoleAttribute) - Method in class com.yifanlu.Josh.JoshOutBuffer
Sets the attributes of characters written or echoed to the console screen buffer.
setConsoleTitle(String) - Static method in class com.yifanlu.Josh.Josh
Sets the title for the current console window.
setConsoleWindowInfo(boolean, ConsoleSmallRect) - Method in class com.yifanlu.Josh.JoshOutBuffer
Sets the current size and position of a console screen buffer's window.
setControlKeyState(int) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Sets any control keys pressed.
setControlKeyState(int) - Method in class com.yifanlu.Josh.ConsoleEventMouse
Sets any control keys pressed.
setCurrentConsoleFont(int) - Method in class com.yifanlu.Josh.JoshOutBuffer
XP Only: Sets the font index.
setCurrentConsoleFontEx(ConsoleFontInfo, boolean) - Method in class com.yifanlu.Josh.JoshOutBuffer
Vista Only: Sets extended information about the current console font.
setCursorPosition(ConsoleCoord) - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Sets the location of the cursor in the buffer info.
setEventFlags(int) - Method in class com.yifanlu.Josh.ConsoleEventMouse
Gets the type of mouse input (click, double click, etc).
setFlags(int) - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Sets the history buffer flags.
setFont(int) - Method in class com.yifanlu.Josh.ConsoleFontInfo
Sets the font.
setFontSize(ConsoleCoord) - Method in class com.yifanlu.Josh.ConsoleFontInfo
Sets the font size.
setFullScreen(boolean) - Method in class com.yifanlu.Josh.JoshOutBuffer
XP Only: Sets the display mode of the specified console screen buffer to fullscreen.
setHandle(ConsoleHandle) - Method in class com.yifanlu.Josh.JoshBuffer
 
setHistoryBufferSize(int) - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Sets the size of the history buffer.
setKeyDown(boolean) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Is the key held down?
setLeft(short) - Method in class com.yifanlu.Josh.ConsoleSmallRect
Sets the upper left x-coordinate of the rectangle.
setMaximumWindowSize(ConsoleCoord) - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Sets the largest size of the buffer info.
setMousePosition(ConsoleCoord) - Method in class com.yifanlu.Josh.ConsoleEventMouse
Sets the current mouse position.
setNumberOfHistoryBuffers(int) - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
Sets the number of history buffers.
setRepeatCount(int) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Sets how many times the key is pressed.
setRight(short) - Method in class com.yifanlu.Josh.ConsoleSmallRect
Sets the lower right x-coordinate of the rectangle.
setSetFocus(boolean) - Method in class com.yifanlu.Josh.ConsoleEventFocus
Sets the focus state.
setSetFocus(int) - Method in class com.yifanlu.Josh.ConsoleEventMenu
Sets the command id.
setSize(int) - Method in class com.yifanlu.Josh.ConsoleCursorInfo
Sets the size.
setSize(ConsoleCoord) - Method in class com.yifanlu.Josh.ConsoleEventBufferChanged
Sets the size of the buffer.
setSize(ConsoleCoord) - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Sets the size of the console buffer in the buffer info.
setStdHandle(ConsoleBuffer, int) - Static method in class com.yifanlu.Josh.Josh
Sets the handle for the specified standard device (standard input, standard output, or standard error).
setTop(short) - Method in class com.yifanlu.Josh.ConsoleSmallRect
Sets the upper left y-coordinate of the rectangle.
setVirtualKeyCode(int) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Sets the key number on the current keyboard.
setVirtualScanCode(int) - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
Sets the scan code on the current keyboard.
setVisible(boolean) - Method in class com.yifanlu.Josh.ConsoleCursorInfo
Sets the visibility.
setWindow(ConsoleSmallRect) - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
Sets the size of the window in the buffer info.
setX(int) - Method in class com.yifanlu.Josh.ConsoleCoord
Sets the X coordinate.
setY(int) - Method in class com.yifanlu.Josh.ConsoleCoord
Sets the Y coordinate.
SHIFT_PRESSED - Static variable in class com.yifanlu.Josh.ConsoleEvent
Constant value for key held.
STD_ERROR_HANDLE - Static variable in class com.yifanlu.Josh.Josh
Used in Josh.getStdHandle(int) and Josh.setStdHandle(com.yifanlu.Josh.ConsoleBuffer, int).
STD_INPUT_HANDLE - Static variable in class com.yifanlu.Josh.Josh
Used in Josh.getStdHandle(int) and Josh.setStdHandle(com.yifanlu.Josh.ConsoleBuffer, int).
STD_OUTPUT_HANDLE - Static variable in class com.yifanlu.Josh.Josh
Used in Josh.getStdHandle(int) and Josh.setStdHandle(com.yifanlu.Josh.ConsoleBuffer, int).

T

toString() - Method in class com.yifanlu.Josh.ConsoleAttribute
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleCharInfo
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleCoord
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleCursorInfo
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleEventBufferChanged
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleEventFocus
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleEventKeyboard
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleEventMenu
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleEventMouse
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleFontInfo
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleHandle
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleHistoryInfo
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleScreenBufferInfo
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleSelectionInfo
A String representation of this object.
toString() - Method in class com.yifanlu.Josh.ConsoleSmallRect
A String representation of this object.

W

WHITE(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a white color attribute.
WHITE() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as WHITE(false)
WINDOW_BUFFER_SIZE_EVENT - Static variable in class com.yifanlu.Josh.ConsoleEvent
Different type of event.
WINDOWS_2000 - Static variable in exception com.yifanlu.Josh.OSNotSupportedException
OS Versions
WINDOWS_VISTA - Static variable in exception com.yifanlu.Josh.OSNotSupportedException
OS Versions
WINDOWS_XP - Static variable in exception com.yifanlu.Josh.OSNotSupportedException
OS Versions
writeConsoleInput(ConsoleEvent) - Method in class com.yifanlu.Josh.JoshInBuffer
Writes data directly to the console input buffer.
writeConsoleOutput(ConsoleCharInfo[], ConsoleCoord, ConsoleCoord, ConsoleSmallRect) - Method in class com.yifanlu.Josh.JoshOutBuffer
Writes character and color attribute data to a specified rectangular block of character cells in a console screen buffer.
writeConsoleOutputAttribute(ConsoleAttribute[], ConsoleCoord, int) - Method in class com.yifanlu.Josh.JoshOutBuffer
Writes a number of character attributes to consecutive cells of a console screen buffer, beginning at a specified location.
writeConsoleOutputChar(char[], ConsoleCoord, int) - Method in class com.yifanlu.Josh.JoshOutBuffer
Writes a number of characters to consecutive cells of a console screen buffer, beginning at a specified location.

Y

YELLOW(boolean) - Static method in class com.yifanlu.Josh.ConsoleColor
Creates and returns a yellow color attribute.
YELLOW() - Static method in class com.yifanlu.Josh.ConsoleColor
Deprecated. Same as YELLOW(false)

A B C D E F G H I J K L M N O P R S T W Y
Copyright © 2010 Yifan Lu