• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Keybinding mapping for JLine. The format is:
2#    [key code]: [logical operation]
3
4# CTRL-A: move to the beginning of the line
51: MOVE_TO_BEG
6
7# CTRL-B: move to the previous character
82: PREV_CHAR
9
10# CTRL-C: toggle overtype mode (frankly, I wasn't sure where to bind this)
113: INSERT
12
13# CTRL-D: close out the input stream
144: EXIT
15
16# CTRL-E: move the cursor to the end of the line
175: MOVE_TO_END
18
19# CTRL-F: move to the next character
206: NEXT_CHAR
21
22# CTRL-G: move to the previous word
237: ABORT
24
25# CTRL-H: delete the previous character
268: DELETE_PREV_CHAR
27
28# TAB, CTRL-I: signal that console completion should be attempted
299: COMPLETE
30
31# CTRL-J, CTRL-M: newline
3210: NEWLINE
33
34# CTRL-K: Vertical tab - on windows we'll move to the start of the history
3511: START_OF_HISTORY
36
37# CTRL-L: Form feed - on windows, we'll move to the end of the history
3812: END_OF_HISTORY
39
40# ENTER: newline
4113: NEWLINE
42
43# CTRL-N: scroll to the next element in the history buffer
4414: NEXT_HISTORY
45
46# CTRL-P: scroll to the previous element in the history buffer
4716: PREV_HISTORY
48
49# CTRL-R: search backwards in history
5018: SEARCH_PREV
51
52# CTRL-U: delete all the characters before the cursor position
5321: KILL_LINE_PREV
54
55# CTRL-V: paste the contents of the clipboard (useful for Windows terminal)
5622: PASTE
57
58# CTRL-W: delete the word directly before the cursor
5923: DELETE_PREV_WORD
60
61# CTRL-X: temporary location for PREV_WORD to make tests pass
6224: PREV_WORD
63
64# CTRL-[: escape - clear the current line.
6527: CLEAR_LINE
66
67# CTRL-?: delete the previous character
68127: DELETE_NEXT_CHAR
69