- 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 -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of character patterns that makes up this profile
-
Field Details
-
ESC_CODE
static final char ESC_CODEStatic constant for the ESC key- See Also:
-
-
Method Details
-
getPatterns
Collection<CharacterPattern> getPatterns()Returns a collection of character patterns that makes up this profile- Returns:
- Collection of patterns in this profile
-