-
- All Known Implementing Classes:
DefaultKeyDecodingProfile
public interface KeyDecodingProfile
In order to convert a stream of characters into objects representing keystrokes, we need to apply logic on this stream to detect special characters. In lanterna, this is done by using a set of character patterns which are matched against the stream until we've found the best match. This interface represents a set of such patterns, a 'profile' with is used when decoding the input. There is a default profile, DefaultKeyDecodingProfile, which will probably do what you need but you can also extend and define your own patterns.
-
-
Field Summary
Fields Modifier and Type Field Description static char
ESC_CODE
Static constant for the ESC key
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Collection<CharacterPattern>
getPatterns()
Returns a collection of character patterns that makes up this profile
-
-
-
Field Detail
-
ESC_CODE
static final char ESC_CODE
Static constant for the ESC key- See Also:
- Constant Field Values
-
-
Method Detail
-
getPatterns
java.util.Collection<CharacterPattern> getPatterns()
Returns a collection of character patterns that makes up this profile- Returns:
- Collection of patterns in this profile
-
-