public class VT100ProgressKeyboard extends VT100AbstractKeyboard
| Modifier and Type | Field and Description |
|---|---|
private boolean |
isWin
OS platform flag
|
static char |
RETURN
RETURN key code
|
| Constructor and Description |
|---|
VT100ProgressKeyboard()
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(int keyCode,
char charCode)
Handle key strokes.
|
void |
injectKey(int keyCode,
char charCode)
Handle key inserts.
|
handleKeystroke, setCursorKey, setMasterPtypublic static final char RETURN
private boolean isWin
public void handle(int keyCode,
char charCode)
Console applications on Windows OS do not use VT100 keyboard codes. In this case we only send the character code, we don't send the key code (the key code is forced to -1).
keyCode - The key code from the input event.charCode - The character code from the input event.public void injectKey(int keyCode,
char charCode)
injectKey in class VT100AbstractKeyboardkeyCode - Key code.charCode - Character code