@@ -1,5 +1,7 @@
11module Graphics.Vty.Input.Events where
22
3+import Data.ByteString
4+
35-- | Representations of non-modifier keys.
46--
57-- * KFun is indexed from 0 to 63. Range of supported FKeys varies by terminal and keyboard.
@@ -42,12 +44,14 @@ data Event
4244 -- signal. If read from 'nextEvent' this is the size at the time the
4345 -- event was processed by Vty. Typically these are the same, but if
4446 -- somebody is resizing the terminal quickly they can be different.
45− | EvPaste String
47+ | EvPaste ByteString
4648 -- ^ A paste event occurs when a bracketed paste input sequence is
4749 -- received. For terminals that support bracketed paste mode, these
4850 -- events will be triggered on a paste event. Terminals that do not
4951 -- support bracketed pastes will send the paste contents as ordinary
50− -- input (which is probably bad, so beware!)
52+ -- input (which is probably bad, so beware!) Note that the data is
53+ -- provided in raw form and you'll have to decode (e.g. as UTF-8) if
54+ -- that's what your application expects.
5155 deriving (Eq,Show,Read,Ord)
5256
5357type ClassifyMap = [(String,Event)]