Interface KeyDecodingProfile

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 final char
    Static constant for the ESC key
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns a collection of character patterns that makes up this profile
  • Field Details

  • Method Details

    • getPatterns

      Returns a collection of character patterns that makes up this profile
      Returns:
      Collection of patterns in this profile