hs-term-emulator-0.1.0.4: Terminal Emulator written in 100% Haskell
Safe HaskellSafe-Inferred
LanguageHaskell2010

System.Terminal.Emulator.KeyboardInput

Documentation

data KeyPress Source #

Constructors

KeyPress_Char !Char !KeyModifiers

The char must be a plain-old regular "visible" character (or ' '). Specifically, you should not put 'n' or 'b' (use SpecialKey for that)

KeyPress_SpecialKey !SpecialKey !KeyModifiers

Used for a key press of a SpecialKey. If a SpecialKey doesn't exist (for example Ctrl, or CapsLock) then no KeyPress event should be generated