@@ -74,6 +74,9 @@ data Vty = Vty
7474mkVty :: IO Vty
7575mkVty = mkVtyEscDelay 0
7676
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.
7780mkVtyEscDelay :: Int -> IO Vty
7881mkVtyEscDelay escDelay = do
7982 term_info <- Terminfo.setupTermFromEnv