vty-windows-0.2.0.2: Windows backend for Vty
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Vty.Platform.Windows.Input.Classify.Types

Description

This module exports the input classification type to avoid import cycles between other modules that need this.

Synopsis

Documentation

data KClass Source #

Description of parsed input sequences, including state for valid key, mouse, and window events plus invalid and partial events.

Constructors

Valid Event ByteString

A valid event was parsed. Any unused characters from the input stream are also provided.

Invalid

The input characters did not represent a valid event.

Prefix

The input characters form the prefix of a valid event character sequence.

Chunk

The input characters are either start of a bracketed paste chunk or in the middle of a bracketed paste chunk.

Instances

Instances details
Show KClass Source # 
Instance details

Defined in Graphics.Vty.Platform.Windows.Input.Classify.Types

Methods

showsPrec :: Int -> KClass -> ShowS

show :: KClass -> String

showList :: [KClass] -> ShowS

Eq KClass Source # 
Instance details

Defined in Graphics.Vty.Platform.Windows.Input.Classify.Types

Methods

(==) :: KClass -> KClass -> Bool

(/=) :: KClass -> KClass -> Bool

data ClassifierState Source #

Whether the classifier is currently processing a chunked format. Currently, only bracketed pastes use this.

Constructors

ClassifierStart

Not processing a chunked format.

ClassifierInChunk ByteString [ByteString]

Currently processing a chunked format. The initial chunk is in the first argument and a reversed remainder of the chunks is collected in the second argument. At the end of the processing, the chunks are reversed and concatenated with the final chunk.