packages feed

vty 5.11 → 5.11.1

raw patch · 4 files changed

+14/−6 lines, 4 files

Files

CHANGELOG view
@@ -1,3 +1,10 @@+5.11.1+  - Add Generic instance for Image+  - nextEvent: stop trying to refresh on a resize event (fixes segfault+    on refresh with normal cursor positioning mode)+  - Remove redundant clause from clipForCharWidth (thanks Eric Mertens)+  - Update maintainer+ 5.11   - Vty now raises a VtyConfigurationError exception when the TERM     evironment variable is missing (thanks Eric Mertens)
src/Graphics/Vty.hs view
@@ -158,8 +158,7 @@      let gkey = do k <- atomically $ readTChan $ _eventChannel input                   case k of -                    (EvResize _ _)  -> innerRefresh-                                       >> displayBounds out+                    (EvResize _ _)  -> displayBounds out                                        >>= return . (\(w,h)-> EvResize w h)                     _               -> return k 
src/Graphics/Vty/Image/Internal.hs view
@@ -1,5 +1,6 @@ {-# LANGUAGE CPP #-} {-# LANGUAGE NamedFieldPuns #-}+{-# LANGUAGE DeriveGeneric #-} {-# OPTIONS_HADDOCK hide #-}  #ifndef MIN_VERSION_base@@ -11,6 +12,8 @@ import Graphics.Vty.Attributes import Graphics.Text.Width +import GHC.Generics+ import Control.DeepSeq  import qualified Data.Text.Lazy as TL@@ -46,7 +49,6 @@             | w < cw    = (n, w /= 0)             | otherwise = clipForCharWidth (w - cw) (TL.tail t) (n + 1)             where cw = safeWcwidth (TL.head t)-        clipForCharWidth _ _ _ = error "clipForCharWidth applied to undefined"     in txt''  -- | This is the internal representation of Images. Use the constructors in "Graphics.Vty.Image" to@@ -140,7 +142,7 @@     --      -- Any image of zero size equals the empty image.     | EmptyImage-    deriving Eq+    deriving (Eq, Generic)  instance Show Image where     show ( HorizText { attr, displayText, outputWidth, charWidth } )
vty.cabal view
@@ -1,9 +1,9 @@ name:                vty-version:             5.11+version:             5.11.1 license:             BSD3 license-file:        LICENSE author:              AUTHORS-maintainer:          Corey O'Connor (coreyoconnor@gmail.com)+maintainer:          Jonathan Daugherty (cygnus@foobox.com) homepage:            https://github.com/coreyoconnor/vty category:            User Interfaces synopsis:            A simple terminal UI library