on master help sign in
cleanup dependencies and docs
commit9c0f1e7f3dfe7c5fced1ff3ee60cd2fbb29cffaf authorCorey O'Connor <corey@ooyala.com> dateSun 27 Jan 2013, 12:37 (14 years ago) parentc702313
4 files changed+28−25
src/Graphics/Vty.hs+1 src/Graphics/Vty/Picture.hs+4 src/Graphics/Vty/Terminal/TerminfoBased.hs+12−12 vty.cabal+11−13
src/Graphics/Vty.hs+1
@@ -66,6 +66,7 @@ data Vty = Vty
6666 -- might want to force a refresh.
6767 , refresh :: IO ()
6868 -- | Clean up after vty.
69+ -- The above methods will throw an exception if executed after this is executed.
6970 , shutdown :: IO ()
7071 }
7172
src/Graphics/Vty/Picture.hs+4
@@ -1,3 +1,7 @@
1+-- | The Picture data structure is representative of the final terminal view.
2+--
3+-- This module re-exports most of the Graphics.Vty.Image and Graphics.Vty.Attributes modules.
4+--
15-- Copyright 2009-2010 Corey O'Connor
26module Graphics.Vty.Picture ( module Graphics.Vty.Picture
37 , Image
src/Graphics/Vty/Terminal/TerminfoBased.hs+12−12
@@ -1,4 +1,4 @@
1−-- Copyright 2009-2010 Corey O'Connor
1+-- Copyright Corey O'Connor (coreyoconnor@gmail.com)
22{-# LANGUAGE ForeignFunctionInterface #-}
33{-# LANGUAGE ScopedTypeVariables #-}
44{-# LANGUAGE FlexibleInstances #-}
@@ -133,28 +133,28 @@ current_display_attr_caps ti
133133instance Terminal Term where
134134 terminal_ID t = term_info_ID t ++ " :: TerminfoBased"
135135
136− release_terminal t = do
137− liftIO $ marshall_cap_to_terminal t set_default_attr []
138− liftIO $ marshall_cap_to_terminal t cnorm []
139− liftIO $ hClose $ term_handle t
136+ release_terminal t = liftIO $ do
137+ marshall_cap_to_terminal t set_default_attr []
138+ marshall_cap_to_terminal t cnorm []
139+ hClose $ term_handle t
140140 return ()
141141
142− reserve_display t = do
142+ reserve_display t = liftIO $ do
143143 if (isJust $ smcup t)
144− then liftIO $ marshall_cap_to_terminal t (fromJust . smcup) []
144+ then marshall_cap_to_terminal t (fromJust . smcup) []
145145 else return ()
146146 -- Screen on OS X does not appear to support smcup?
147147 -- To approximate the expected behavior: clear the screen and then move the mouse to the
148148 -- home position.
149− liftIO $ hFlush stdout
150− liftIO $ marshall_cap_to_terminal t clear_screen []
149+ hFlush stdout
150+ marshall_cap_to_terminal t clear_screen []
151151 return ()
152152
153− release_display t = do
153+ release_display t = liftIO $ do
154154 if (isJust $ rmcup t)
155− then liftIO $ marshall_cap_to_terminal t (fromJust . rmcup) []
155+ then marshall_cap_to_terminal t (fromJust . rmcup) []
156156 else return ()
157− liftIO $ marshall_cap_to_terminal t cnorm []
157+ marshall_cap_to_terminal t cnorm []
158158 return ()
159159
160160 display_terminal_instance t b c = do
vty.cabal+11−13
@@ -1,5 +1,5 @@
11name: vty
2−version: 4.7.1
2+version: 4.7.2
33license: BSD3
44license-file: LICENSE
55author: AUTHORS
@@ -14,8 +14,8 @@ description:
1414 Included in the source distribution is a program test/interactive_terminal_test.hs that
1515 demonstrates the various features.
1616 .
17− If your terminal is not behaving as expected the results of the test/interactive_terminal_test.hs
18− program should be sent to the Vty maintainter to aid in debugging the issue.
17+ If your terminal is not behaving as expected the results of the vty-interactive-terminal-test
18+ executable should be sent to the Vty maintainter to aid in debugging the issue.
1919 .
2020 Notable infelicities: Sometimes poor efficiency; Assumes UTF-8 character encoding support by the
2121 terminal;
@@ -26,7 +26,7 @@ description:
2626 .
2727 &#169; 2006-2007 Stefan O'Rear; BSD3 license.
2828 .
29− &#169; 2008-2012 Corey O'Connor; BSD3 license.
29+ &#169; Corey O'Connor; BSD3 license.
3030-- the test suites require >= 1.17.0
3131cabal-version: >= 1.14.0
3232build-type: Simple
@@ -52,16 +52,17 @@ library
5252 vector >= 0.7
5353
5454 exposed-modules: Graphics.Vty
55− Graphics.Vty.Terminal
56− Graphics.Vty.LLInput
5755 Graphics.Vty.Attributes
56+ Graphics.Vty.DisplayRegion
57+ Graphics.Vty.Error
5858 Graphics.Vty.Image
5959 Graphics.Vty.Inline
60+ Graphics.Vty.LLInput
6061 Graphics.Vty.Picture
61− Graphics.Vty.DisplayRegion
62+ Graphics.Vty.Terminal
63+ Codec.Binary.UTF8.Width
6264
63− other-modules: Codec.Binary.UTF8.Width
64− Data.Marshalling
65+ other-modules: Data.Marshalling
6566 Data.Terminfo.Parse
6667 Data.Terminfo.Eval
6768 Graphics.Vty.DisplayAttributes
@@ -604,10 +605,7 @@ executable vty-interactive-terminal-test
604605
605606 include-dirs: cbits
606607
607− build-depends: Cabal == 1.17.*,
608− QuickCheck >= 2.4,
609− random == 1.0.*,
610− base >= 4 && < 5,
608+ build-depends: base >= 4 && < 5,
611609 bytestring,
612610 containers,
613611 deepseq >= 1.1 && < 1.4,