sixel-0.1.2.1: Sixel library to show images in a terminal emulator

Safe HaskellNone
LanguageHaskell2010

Data.Sixel

Synopsis

Documentation

c_img2sixel :: Ptr () -> Ptr () -> CInt -> CInt -> IO CInt Source #

newtype SixelImage Source #

Constructors

SixelImage 
Instances
Eq SixelImage Source # 
Instance details

Defined in Data.Sixel

Show SixelImage Source # 
Instance details

Defined in Data.Sixel

ToSixel SixelImage Source # 
Instance details

Defined in Data.Sixel

data LatexStr Source #

Constructors

LatexStr 
Instances
Eq LatexStr Source # 
Instance details

Defined in Data.Sixel

Show LatexStr Source # 
Instance details

Defined in Data.Sixel

ToSixel LatexStr Source # 
Instance details

Defined in Data.Sixel

type Width = Int Source #

class ToSixel a where Source #

Methods

toSixel :: a -> SixelImage Source #

putSixel :: a -> IO () Source #

Instances
Show a => ToSixel a Source # 
Instance details

Defined in Data.Sixel

Methods

toSixel :: a -> SixelImage Source #

putSixel :: a -> IO () Source #

ToSixel DynamicImage Source # 
Instance details

Defined in Data.Sixel

ToSixel LatexStr Source # 
Instance details

Defined in Data.Sixel

ToSixel SixelImage Source # 
Instance details

Defined in Data.Sixel

ToSixel [SixelCmd] Source # 
Instance details

Defined in Data.Sixel

ToSixel (Image PixelRGB8) Source # 
Instance details

Defined in Data.Sixel

putImage :: FilePath -> IO () Source #

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.