-- Hoogle documentation, generated by Haddock -- See Hoogle, http://www.haskell.org/hoogle/ -- | Sixel library to show images in a terminal emulator -- -- Sixel can show graphics on a terminal emulator. This library is -- developed to showing images on ghci. @package sixel @version 0.1.2.0 module Data.Sixel c_bufsize :: CInt -> CInt -> IO CInt c_img2sixel :: Ptr () -> Ptr () -> CInt -> CInt -> IO CInt newtype SixelImage SixelImage :: String -> SixelImage [toSixelString] :: SixelImage -> String data LatexStr LatexStr :: String -> Float -> LatexStr [toLatexStr] :: LatexStr -> String [strSize] :: LatexStr -> Float latex :: String -> LatexStr math :: String -> LatexStr type ColorNumber = Word8 type PixelPattern = Word8 type Width = Int type Height = Int data SixelCmd Start :: Int -> Int -> Int -> SixelCmd End :: SixelCmd Size :: Int -> Int -> Width -> Height -> SixelCmd ColorMapRGB :: ColorNumber -> Word8 -> Word8 -> Word8 -> SixelCmd ColorMapHLS :: ColorNumber -> Int -> Word8 -> Word8 -> SixelCmd Color :: ColorNumber -> SixelCmd Sixel :: PixelPattern -> SixelCmd Repeat :: Int -> PixelPattern -> SixelCmd CR :: SixelCmd LF :: SixelCmd class ToSixel a toSixel :: ToSixel a => a -> SixelImage putSixel :: ToSixel a => a -> IO () latexStr :: String -> Float -> String toSixelCmds :: Image PixelRGB8 -> [SixelCmd] img2sixel :: Image PixelRGB8 -> ByteString -- | Display sixel image via ByteString putStr of String is really slow on -- ghci. (Compiled version is not so slow.) To improve perfomance of -- rendering on ghci, this function uses putStr of ByteString. putImage :: FilePath -> IO () instance GHC.Classes.Eq Data.Sixel.SixelCmd instance GHC.Classes.Eq Data.Sixel.LatexStr instance GHC.Classes.Eq Data.Sixel.SixelImage instance GHC.Show.Show Data.Sixel.LatexStr instance GHC.Show.Show a => Data.Sixel.ToSixel a instance Data.Sixel.ToSixel [Data.Sixel.SixelCmd] instance Data.Sixel.ToSixel Codec.Picture.Types.DynamicImage instance Data.Sixel.ToSixel (Codec.Picture.Types.Image Codec.Picture.Types.PixelRGB8) instance Data.Sixel.ToSixel Data.Sixel.SixelImage instance Data.Sixel.ToSixel Data.Sixel.LatexStr instance GHC.Show.Show Data.Sixel.SixelCmd instance GHC.Show.Show [Data.Sixel.SixelCmd] instance GHC.Show.Show Data.Sixel.SixelImage