alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Scala example source code file (keybindings.properties)

This example Scala source code file (keybindings.properties) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Scala tags/keywords

ascii, ascii, ctrl, ctrl-b, ctrl-d, ctrl-h, ctrl-k, ctrl-m, ctrl-n, ctrl-o, ctrl-p, ctrl-u, the, windows

The Scala keybindings.properties source code

# Keybinding mapping for JLine. The format is:
#    [key code]=[logical operation]

# CTRL-A: move to the beginning of the line
1=MOVE_TO_BEG

# CTRL-B: move to the previous character
2=PREV_CHAR

# CTRL-D: close out the input stream
4=EXIT

# CTRL-E: move the cursor to the end of the line
5=MOVE_TO_END

# CTRL-F: move to the next character
6=NEXT_CHAR

# CTRL-G: abort
7=ABORT

# BACKSPACE, CTRL-H: delete the previous character
# 8 is the ASCII code for backspace and therefor
# deleting the previous character
8=DELETE_PREV_CHAR

# TAB, CTRL-I: signal that console completion should be attempted
9=COMPLETE

# CTRL-J, CTRL-M: newline
10=NEWLINE

# CTRL-K: erase the current line
11=KILL_LINE

# CTRL-L: clear screen
12=CLEAR_SCREEN

# ENTER: newline
13=NEWLINE

# CTRL-N: scroll to the next element in the history buffer
14=NEXT_HISTORY

# CTRL-O: move to the previous word
15=PREV_WORD

# CTRL-P: scroll to the previous element in the history buffer
16=PREV_HISTORY

# CTRL-R: search history
18=SEARCH_PREV

# CTRL-T: move to next word
20=NEXT_WORD

# CTRL-U: delete all the characters before the cursor position
21=KILL_LINE_PREV

# CTRL-V: paste the contents of the clipboard (useful for Windows terminal)
22=PASTE

# CTRL-W: delete the word directly before the cursor
23=DELETE_PREV_WORD

# CTRL-X: delete the word directly after the cursor
24=DELETE_NEXT_WORD

# DELETE, CTRL-?: delete the next character
# 127 is the ASCII code for delete
127=DELETE_NEXT_CHAR

Other Scala examples (source code examples)

Here is a short list of links related to this Scala keybindings.properties source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.