jline

Interface ConsoleOperations

Known Implementing Classes:
ConsoleReader, Terminal, UnixTerminal, UnsupportedTerminal, WindowsTerminal

public interface ConsoleOperations

Symbolic constants for Console operations and virtual key bindings.
Author:
Marc Prud'hommeaux
See Also:
KeyEvent

Field Summary

static short
ADD
Operation that
static char
BACKSPACE
static short
CHANGE_CASE
Operation that toggles between uppercase and lowercase.
static short
CHANGE_META
Operation that
static short
CLEAR_LINE
Operation that clears whatever text is on the current line.
static short
CLEAR_SCREEN
Operation that clears the screen.
static short
COMPLETE
Operation that performs completion operation on the current word.
static String
CR
static char
CTRL_A
static char
CTRL_B
static char
CTRL_C
static char
CTRL_D
static char
CTRL_E
static char
CTRL_F
static char
CTRL_K
static char
CTRL_L
static char
CTRL_N
static char
CTRL_OB
static char
CTRL_P
static char
CTRL_QM
static char
DELETE
static short
DELETE_META
Operation that
static short
DELETE_NEXT_CHAR
Operation that deletes the previous character.
static short
DELETE_PREV_CHAR
Operation that
static short
DELETE_PREV_WORD
Operation that deletes the previous word in the buffer.
static short
END_OF_HISTORY
Operation that moves the current History to the end.
static short
END_WORD
Operation that
static short
EXIT
Operation that exits the command prompt.
static short
INSERT
Operation that toggles insert/overtype
static char
KEYBOARD_BELL
static short
KILL_LINE
Operation that deletes the buffer from the current character to the end.
static short
KILL_LINE_PREV
Operation that deletes the buffer from the cursor to the beginning.
static short
MOVE_TO_BEG
Operation that moves to the beginning of the buffer.
static short
MOVE_TO_END
Operation that moves to the end of the buffer.
static short
NEWLINE
Operation that issues a newline.
static short
NEXT_CHAR
Operation that moves to the next character in the buffer.
static short
NEXT_HISTORY
Operation that sets the buffer to the next history item.
static short
NEXT_SPACE_WORD
Operation that
static short
NEXT_WORD
Operation that moved to the next word.
static short
PASTE
Operation that pastes the contents of the clipboard into the line
static short
PASTE_NEXT
Operation that
static short
PASTE_PREV
Operation that
static short
PREV_CHAR
Operation that moved to the previous character in the buffer.
static short
PREV_HISTORY
Operation that sets the buffer to the previous history item.
static short
PREV_SPACE_WORD
Operation that moved to the previous whitespace.
static short
PREV_WORD
Operation that
static short
REDISPLAY
Operation that redisplays the current buffer.
static short
REPEAT_NEXT_CHAR
Operation that repeats the character.
static short
REPEAT_PREV_CHAR
Operation that moves to the previous character in the buffer.
static short
REPEAT_SEARCH_NEXT
Operation that
static short
REPEAT_SEARCH_PREV
Operation that
static short
REPLACE_CHAR
Operation that
static short
REPLACE_MODE
Operation that
static char
RESET_LINE
static short
SEARCH_NEXT
Operation that searches forward in the command history.
static short
SEARCH_PREV
Operation that searches backwards in the command history.
static short
START_OF_HISTORY
Operation that moves the current History to the beginning.
static short
SUBSTITUTE_CHAR
Operation that
static short
SUBSTITUTE_LINE
Operation that
static short
TO_END_WORD
Operation that moved to the end of the current word.
static short
TO_NEXT_CHAR
Operation that
static short
TO_PREV_CHAR
Operation that
static short
UNDO
Operation that undoes the previous operation.
static short
UNKNOWN
Unknown operation.

Field Details

ADD

public static final short ADD
Operation that
Field Value:
-42

BACKSPACE

public static final char BACKSPACE
Field Value:
'\b'

CHANGE_CASE

public static final short CHANGE_CASE
Operation that toggles between uppercase and lowercase.
Field Value:
-57

CHANGE_META

public static final short CHANGE_META
Operation that
Field Value:
-44

CLEAR_LINE

public static final short CLEAR_LINE
Operation that clears whatever text is on the current line.
Field Value:
-63

CLEAR_SCREEN

public static final short CLEAR_SCREEN
Operation that clears the screen.
Field Value:
-8

COMPLETE

public static final short COMPLETE
Operation that performs completion operation on the current word.
Field Value:
-58

CR

public static final String CR

CTRL_A

public static final char CTRL_A
Field Value:
'\u0001'

CTRL_B

public static final char CTRL_B
Field Value:
'\u0002'

CTRL_C

public static final char CTRL_C
Field Value:
'\u0003'

CTRL_D

public static final char CTRL_D
Field Value:
'\u0004'

CTRL_E

public static final char CTRL_E
Field Value:
'\u0005'

CTRL_F

public static final char CTRL_F
Field Value:
'\u0006'

CTRL_K

public static final char CTRL_K
Field Value:
'\u000b'

CTRL_L

public static final char CTRL_L
Field Value:
'\f'

CTRL_N

public static final char CTRL_N
Field Value:
'\u000e'

CTRL_OB

public static final char CTRL_OB
Field Value:
'\u001b'

CTRL_P

public static final char CTRL_P
Field Value:
'\u0010'

CTRL_QM

public static final char CTRL_QM
Field Value:
''

DELETE

public static final char DELETE
Field Value:
''

DELETE_META

public static final short DELETE_META
Operation that
Field Value:
-45

DELETE_NEXT_CHAR

public static final short DELETE_NEXT_CHAR
Operation that deletes the previous character.
Field Value:
-56

DELETE_PREV_CHAR

public static final short DELETE_PREV_CHAR
Operation that
Field Value:
-41

DELETE_PREV_WORD

public static final short DELETE_PREV_WORD
Operation that deletes the previous word in the buffer.
Field Value:
-16

END_OF_HISTORY

public static final short END_OF_HISTORY
Operation that moves the current History to the end.
Field Value:
-62

END_WORD

public static final short END_WORD
Operation that
Field Value:
-46

EXIT

public static final short EXIT
Operation that exits the command prompt.
Field Value:
-59

INSERT

public static final short INSERT
Operation that toggles insert/overtype
Field Value:
-48

KEYBOARD_BELL

public static final char KEYBOARD_BELL
Field Value:
'\'

KILL_LINE

public static final short KILL_LINE
Operation that deletes the buffer from the current character to the end.
Field Value:
-7

KILL_LINE_PREV

public static final short KILL_LINE_PREV
Operation that deletes the buffer from the cursor to the beginning.
Field Value:
-15

MOVE_TO_BEG

public static final short MOVE_TO_BEG
Operation that moves to the beginning of the buffer.
Field Value:
-1

MOVE_TO_END

public static final short MOVE_TO_END
Operation that moves to the end of the buffer.
Field Value:
-3

NEWLINE

public static final short NEWLINE
Operation that issues a newline.
Field Value:
-6

NEXT_CHAR

public static final short NEXT_CHAR
Operation that moves to the next character in the buffer.
Field Value:
-19

NEXT_HISTORY

public static final short NEXT_HISTORY
Operation that sets the buffer to the next history item.
Field Value:
-9

NEXT_SPACE_WORD

public static final short NEXT_SPACE_WORD
Operation that
Field Value:
-40

NEXT_WORD

public static final short NEXT_WORD
Operation that moved to the next word.
Field Value:
-55

PASTE

public static final short PASTE
Operation that pastes the contents of the clipboard into the line
Field Value:
-60

PASTE_NEXT

public static final short PASTE_NEXT
Operation that
Field Value:
-50

PASTE_PREV

public static final short PASTE_PREV
Operation that
Field Value:
-36

PREV_CHAR

public static final short PREV_CHAR
Operation that moved to the previous character in the buffer.
Field Value:
-4

PREV_HISTORY

public static final short PREV_HISTORY
Operation that sets the buffer to the previous history item.
Field Value:
-11

PREV_SPACE_WORD

public static final short PREV_SPACE_WORD
Operation that moved to the previous whitespace.
Field Value:
-27

PREV_WORD

public static final short PREV_WORD
Operation that
Field Value:
-43

REDISPLAY

public static final short REDISPLAY
Operation that redisplays the current buffer.
Field Value:
-13

REPEAT_NEXT_CHAR

public static final short REPEAT_NEXT_CHAR
Operation that repeats the character.
Field Value:
-24

REPEAT_PREV_CHAR

public static final short REPEAT_PREV_CHAR
Operation that moves to the previous character in the buffer.
Field Value:
-20

REPEAT_SEARCH_NEXT

public static final short REPEAT_SEARCH_NEXT
Operation that
Field Value:
-49

REPEAT_SEARCH_PREV

public static final short REPEAT_SEARCH_PREV
Operation that
Field Value:
-34

REPLACE_CHAR

public static final short REPLACE_CHAR
Operation that
Field Value:
-51

REPLACE_MODE

public static final short REPLACE_MODE
Operation that
Field Value:
-37

RESET_LINE

public static final char RESET_LINE
Field Value:
'\r'

SEARCH_NEXT

public static final short SEARCH_NEXT
Operation that searches forward in the command history.
Field Value:
-25

SEARCH_PREV

public static final short SEARCH_PREV
Operation that searches backwards in the command history.
Field Value:
-21

START_OF_HISTORY

public static final short START_OF_HISTORY
Operation that moves the current History to the beginning.
Field Value:
-61

SUBSTITUTE_CHAR

public static final short SUBSTITUTE_CHAR
Operation that
Field Value:
-52

SUBSTITUTE_LINE

public static final short SUBSTITUTE_LINE
Operation that
Field Value:
-38

TO_END_WORD

public static final short TO_END_WORD
Operation that moved to the end of the current word.
Field Value:
-29

TO_NEXT_CHAR

public static final short TO_NEXT_CHAR
Operation that
Field Value:
-53

TO_PREV_CHAR

public static final short TO_PREV_CHAR
Operation that
Field Value:
-39

UNDO

public static final short UNDO
Operation that undoes the previous operation.
Field Value:
-54

UNKNOWN

public static final short UNKNOWN
Unknown operation.
Field Value:
-99