in scala 2.9 REPL you have a new command: keybindings. It shows:
scala> :keybindings Reading jline properties for default key bindings. Accuracy not guaranteed: treat this as a guideline only. 1 CTRL-A: move to the beginning of the line 2 CTRL-B: move to the previous character 4 CTRL-D: close out the input stream 5 CTRL-E: move the cursor to the end of the line 6 CTRL-F: move to the next character 7 CTRL-G: abort 8 BACKSPACE, CTRL-H: delete the previous character 8 is the ASCII code for backspace and therefor deleting the previous character 9 TAB, CTRL-I: signal that console completion should be attempted 10 CTRL-J, CTRL-M: newline 11 CTRL-K: erase the current line 12 CTRL-L: clear screen 13 ENTER: newline 14 CTRL-N: scroll to the next element in the history buffer 15 CTRL-O: move to the previous word 16 CTRL-P: scroll to the previous element in the history buffer 18 CTRL-R: redraw the current line 21 CTRL-U: delete all the characters before the cursor position 22 CTRL-V: paste the contents of the clipboard (useful for Windows terminal) 23 CTRL-W: delete the word directly before the cursor 127 DELETE, CTRL-?: delete the next character 127 is the ASCII code for delete
on macbooks, DELETE is available through Fn + BACKSPACE .
source share