@@ -24,14 +24,10 @@
24-- - <http://vt100.net/docs/vt100-ug/chapter3.html vt100 control sequences>
24-- - <http://vt100.net/docs/vt100-ug/chapter3.html vt100 control sequences>
25module Graphics.Vty ( Vty(..)
25module Graphics.Vty ( Vty(..)
27− , mkVtyEscDelay
27+ , module Graphics.Vty.Input
28 , module Graphics.Vty.Output
28 , module Graphics.Vty.Output
29 , module Graphics.Vty.Picture
29 , module Graphics.Vty.Picture
30 , DisplayRegion
30 , DisplayRegion
@@ -88,15 +84,8 @@ data Vty = Vty
89-- | Set up the state object for using vty. At most one state object should be
85-- | Set up the state object for using vty. At most one state object should be
90-- created at a time.
86-- created at a time.
92−mkVty = mkVtyEscDelay def
94−-- | Set up the state object for using vty. At most one state object should be
95−-- created at a time. The delay, in microseconds, specifies the period of time to wait for a key
96−-- following reading ESC from the terminal before considering the ESC key press as a discrete event.
97−-- \todo move input init into terminal interface
98−mkVtyEscDelay :: Config -> IO Vty
87+mkVty :: Config -> IO Vty
99−mkVtyEscDelay config = do
88+mkVty config = do
100 input <- input_for_current_terminal config
89 input <- input_for_current_terminal config
101 out <- output_for_current_terminal
90 out <- output_for_current_terminal
102 intMkVty input out
91 intMkVty input out