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

Safe HaskellNone
LanguageHaskell2010

Data.Sixel

Contents

Synopsis

Documentation

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

type Width = Int 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

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.

data LatexStr Source #

Constructors

LatexStr 
Instances
Eq LatexStr Source # 
Instance details

Defined in Data.Sixel.Internal

Show LatexStr Source # 
Instance details

Defined in Data.Sixel

Show LatexStr Source # 
Instance details

Defined in Data.OSC1337

ToSixel LatexStr Source # 
Instance details

Defined in Data.Sixel

ToOSC LatexStr Source # 
Instance details

Defined in Data.OSC1337

Orphan instances

Show LatexStr Source # 
Instance details