@@ -14,13 +14,13 @@ module Graphics.Vty.Image ( DisplayText
14 , vert_cat
14 , vert_cat
15 , background_fill
15 , background_fill
17− , strict_text
17+ , text'
20 , iso_10646_string
20 , iso_10646_string
21 , utf8_string
21 , utf8_string
22 , utf8_bytestring
22 , utf8_bytestring
23− , utf8_strict_bytestring
23+ , utf8_bytestring'
24 , char_fill
24 , char_fill
25 , empty_image
25 , empty_image
26 , safe_wcwidth
26 , safe_wcwidth
@@ -162,8 +162,8 @@ text a txt
162 in HorizText a txt display_width (fromIntegral $! TL.length txt)
162 in HorizText a txt display_width (fromIntegral $! TL.length txt)
164-- | A Data.Text value
164-- | A Data.Text value
165−strict_text :: Attr -> T.Text -> Image
165+text' :: Attr -> T.Text -> Image
166−strict_text a txt
166+text' a txt
167 | T.length txt == 0 = EmptyImage
167 | T.length txt == 0 = EmptyImage
168 | otherwise = let display_width = safe_wcswidth (T.unpack txt)
168 | otherwise = let display_width = safe_wcswidth (T.unpack txt)
169 in HorizText a (TL.fromStrict txt) display_width (T.length txt)
169 in HorizText a (TL.fromStrict txt) display_width (T.length txt)
@@ -208,8 +208,8 @@ utf8_bytestring :: Attr -> BL.ByteString -> Image
208utf8_bytestring a bs = text a (TL.decodeUtf8 bs)
208utf8_bytestring a bs = text a (TL.decodeUtf8 bs)
210-- | Renders a UTF-8 encoded strict bytestring.
210-- | Renders a UTF-8 encoded strict bytestring.
211−utf8_strict_bytestring :: Attr -> B.ByteString -> Image
211+utf8_bytestring' :: Attr -> B.ByteString -> Image
212−utf8_strict_bytestring a bs = strict_text a (T.decodeUtf8 bs)
212+utf8_bytestring' a bs = text' a (T.decodeUtf8 bs)
214-- | creates a fill of the specified character. The dimensions are in number of characters wide and
214-- | creates a fill of the specified character. The dimensions are in number of characters wide and
215-- number of rows high.
215-- number of rows high.