on master help sign in
doc use of escape delay parameter
a3f57dacoreyoconnor
src/Graphics/Vty.hs+3
@@ -74,6 +74,9 @@ data Vty = Vty
74mkVty :: IO Vty
74mkVty :: IO Vty
75mkVty = mkVtyEscDelay 0
75mkVty = mkVtyEscDelay 0
76
76
77+-- | Set up the state object for using vty. At most one state object should be
78+-- created at a time. The delay, in microseconds, specifies the period of time to wait for a key
79+-- following reading ESC from the terminal before considering the ESC key press as a discrete event.
77mkVtyEscDelay :: Int -> IO Vty
80mkVtyEscDelay :: Int -> IO Vty
78mkVtyEscDelay escDelay = do
81mkVtyEscDelay escDelay = do
79 term_info <- Terminfo.setupTermFromEnv
82 term_info <- Terminfo.setupTermFromEnv