-- 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.3 module Data.Sixel.Internal c_bufsize :: CInt -> CInt -> IO CInt c_img2sixel :: Ptr () -> Ptr () -> CInt -> CInt -> IO CInt c_img2palettized_sixel :: Ptr () -> Ptr () -> Ptr () -> CInt -> CInt -> IO CInt data LatexStr LatexStr :: String -> Float -> LatexStr [toLatexStr] :: LatexStr -> String [strSize] :: LatexStr -> Float latex :: String -> LatexStr math :: String -> LatexStr latexStr :: String -> Float -> String latex2img :: LatexStr -> IO (Either String DynamicImage) instance GHC.Classes.Eq Data.Sixel.Internal.LatexStr module Data.Sixel class ToSixel a toSixel :: ToSixel a => a -> SixelImage putSixel :: ToSixel a => a -> IO () 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 type Height = Int type Width = Int type PixelPattern = Word8 type ColorNumber = Word8 newtype SixelImage SixelImage :: String -> SixelImage [toSixelString] :: SixelImage -> String toSixelCmds :: Image PixelRGB8 -> [SixelCmd] img2sixel :: Image PixelRGB8 -> ByteString img2palettizedSixel :: 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 () data LatexStr LatexStr :: String -> Float -> LatexStr [toLatexStr] :: LatexStr -> String [strSize] :: LatexStr -> Float latex :: String -> LatexStr math :: String -> LatexStr instance GHC.Classes.Eq Data.Sixel.SixelCmd instance GHC.Classes.Eq Data.Sixel.SixelImage instance GHC.Show.Show Data.Sixel.Internal.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.Internal.LatexStr instance GHC.Show.Show Data.Sixel.SixelCmd instance GHC.Show.Show [Data.Sixel.SixelCmd] instance GHC.Show.Show Data.Sixel.SixelImage module Data.OSC1337 -- | See -- https://chromium.googlesource.com/apps/libapps/+/master/hterm/doc/ControlSequences.md#OSC-1337 class ToOSC a toOSC :: ToOSC a => a -> OSCImage putOSC :: ToOSC a => a -> IO () newtype OSCImage OSCImage :: String -> OSCImage [toOSCString] :: OSCImage -> String data OSCCmd Start :: OSCCmd End :: OSCCmd FileName :: String -> OSCCmd Size :: Int -> OSCCmd Width :: Int -> OSCCmd Height :: Int -> OSCCmd PreserveAspectRatio :: Int -> OSCCmd Inline :: Int -> OSCCmd Align :: String -> OSCCmd MimeType :: String -> OSCCmd ImageDat :: String -> OSCCmd img2osc :: Image PixelRGB8 -> ByteString putImage :: FilePath -> IO () data LatexStr LatexStr :: String -> Float -> LatexStr [toLatexStr] :: LatexStr -> String [strSize] :: LatexStr -> Float latex :: String -> LatexStr math :: String -> LatexStr instance GHC.Classes.Eq Data.OSC1337.OSCImage instance GHC.Classes.Eq Data.OSC1337.OSCCmd instance GHC.Show.Show a => Data.OSC1337.ToOSC a instance Data.OSC1337.ToOSC Codec.Picture.Types.DynamicImage instance Data.OSC1337.ToOSC (Codec.Picture.Types.Image Codec.Picture.Types.PixelRGB8) instance GHC.Show.Show Data.Sixel.Internal.LatexStr instance Data.OSC1337.ToOSC Data.Sixel.Internal.LatexStr instance GHC.Show.Show Data.OSC1337.OSCImage instance GHC.Show.Show Data.OSC1337.OSCCmd instance GHC.Show.Show [Data.OSC1337.OSCCmd]