1 # Keybinding mapping for JLine. The format is: 2 # [key code]: [logical operation] 3 4 # CTRL-A: move to the beginning of the line 5 1: MOVE_TO_BEG 6 7 # CTRL-B: move to the previous character 8 2: PREV_CHAR 9 10 # CTRL-C: toggle overtype mode (frankly, I wasn't sure where to bind this) 11 3: INSERT 12 13 # CTRL-D: close out the input stream 14 4: EXIT 15 16 # CTRL-E: move the cursor to the end of the line 17 5: MOVE_TO_END 18 19 # CTRL-F: move to the next character 20 6: NEXT_CHAR 21 22 # CTRL-G: move to the previous word 23 7: ABORT 24 25 # CTRL-H: delete the previous character 26 8: DELETE_PREV_CHAR 27 28 # TAB, CTRL-I: signal that console completion should be attempted 29 9: COMPLETE 30 31 # CTRL-J, CTRL-M: newline 32 10: NEWLINE 33 34 # CTRL-K: Vertical tab - on windows we'll move to the start of the history 35 11: START_OF_HISTORY 36 37 # CTRL-L: Form feed - on windows, we'll move to the end of the history 38 12: END_OF_HISTORY 39 40 # ENTER: newline 41 13: NEWLINE 42 43 # CTRL-N: scroll to the next element in the history buffer 44 14: NEXT_HISTORY 45 46 # CTRL-P: scroll to the previous element in the history buffer 47 16: PREV_HISTORY 48 49 # CTRL-R: search backwards in history 50 18: SEARCH_PREV 51 52 # CTRL-U: delete all the characters before the cursor position 53 21: KILL_LINE_PREV 54 55 # CTRL-V: paste the contents of the clipboard (useful for Windows terminal) 56 22: PASTE 57 58 # CTRL-W: delete the word directly before the cursor 59 23: DELETE_PREV_WORD 60 61 # CTRL-X: temporary location for PREV_WORD to make tests pass 62 24: PREV_WORD 63 64 # CTRL-[: escape - clear the current line. 65 27: CLEAR_LINE 66 67 # CTRL-?: delete the previous character 68 127: DELETE_NEXT_CHAR 69