• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1# Keybinding mapping for JLine. The format is:
2#    [key code]: [logical operation]
3
4# CTRL-B: move to the previous character
52: PREV_CHAR
6
7# CTRL-G: move to the previous word
87: PREV_WORD
9
10# CTRL-F: move to the next character
116: NEXT_CHAR
12
13# CTRL-A: move to the beginning of the line
141: MOVE_TO_BEG
15
16# CTRL-D: close out the input stream
174: EXIT
18
19# CTRL-E: move the cursor to the end of the line
205: MOVE_TO_END
21
22# BACKSPACE, CTRL-H: delete the previous character
23# 8 is the ASCII code for backspace and therefor
24# deleting the previous character
258: DELETE_PREV_CHAR
26
27# TAB, CTRL-I: signal that console completion should be attempted
289: COMPLETE
29
30# CTRL-J, CTRL-M: newline
3110: NEWLINE
32
33# CTRL-K: erase the current line
3411: KILL_LINE
35
36# ENTER: newline
3713: NEWLINE
38
39# CTRL-L: clear screen
4012: CLEAR_SCREEN
41
42# CTRL-N: scroll to the next element in the history buffer
4314: NEXT_HISTORY
44
45# CTRL-P: scroll to the previous element in the history buffer
4616: PREV_HISTORY
47
48# CTRL-R: redraw the current line
4918: REDISPLAY
50
51# CTRL-U: delete all the characters before the cursor position
5221: KILL_LINE_PREV
53
54# CTRL-V: paste the contents of the clipboard (useful for Windows terminal)
5522: PASTE
56
57# CTRL-W: delete the word directly before the cursor
5823: DELETE_PREV_WORD
59
60# DELETE, CTRL-?: delete the previous character
61# 127 is the ASCII code for delete
62127: DELETE_PREV_CHAR
63