Class InputrcParser
java.lang.Object
org.aesh.readline.editing.InputrcParser
Map key bindings to specified operation.
Used when reading inputrc files.
Created to map bindings like:
"\M-[D": backward-char
Meta-Control-h: backward-kill-word
C-q: quoted-insert
... etc
- Author:
- Ståle W. Pedersen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic int[]static int[]mapQuoteKeys(String keys) Parse key mapping lines that start with "protected static EditModeparseInputrc(InputStream inputStream) Must be able to parse: set variablename value keyname: function-name or macro "keyseq": function-name or macro Lines starting with # are comments Lines starting with $ are conditional init constructsprotected static EditModeparseInputrc(InputStream inputStream, EditModeBuilder editMode) protected static voidparseLine(String line, EditModeBuilder editMode)
-
Constructor Details
-
InputrcParser
public InputrcParser()
-
-
Method Details
-
parseInputrc
Must be able to parse: set variablename value keyname: function-name or macro "keyseq": function-name or macro Lines starting with # are comments Lines starting with $ are conditional init constructs -
parseInputrc
-
parseLine
-
mapKeys
-
mapQuoteKeys
Parse key mapping lines that start with "- Parameters:
keys- that need mapping- Returns:
- int[] value of keys
-