vgrep-0.2.3.0: A pager for grep
Safe HaskellSafe-Inferred
LanguageHaskell2010

Vgrep.Ansi.Vty.Attributes

Synopsis

Documentation

data Attr #

A display attribute defines the Color and Style of all the characters rendered after the attribute is applied.

At most 256 colors, picked from a 240 and 16 color palette, are possible for the background and foreground. The 240 colors and 16 colors are points in different palettes. See Color for more information.

Instances

Instances details
Eq Attr 
Instance details

Defined in Graphics.Vty.Attributes

Methods

(==) :: Attr -> Attr -> Bool #

(/=) :: Attr -> Attr -> Bool #

Read Attr 
Instance details

Defined in Graphics.Vty.Attributes

Show Attr 
Instance details

Defined in Graphics.Vty.Attributes

Methods

showsPrec :: Int -> Attr -> ShowS #

show :: Attr -> String #

showList :: [Attr] -> ShowS #

Generic Attr 
Instance details

Defined in Graphics.Vty.Attributes

Associated Types

type Rep Attr :: Type -> Type #

Methods

from :: Attr -> Rep Attr x #

to :: Rep Attr x -> Attr #

Semigroup Attr 
Instance details

Defined in Graphics.Vty.Attributes

Methods

(<>) :: Attr -> Attr -> Attr #

sconcat :: NonEmpty Attr -> Attr #

stimes :: Integral b => b -> Attr -> Attr #

Monoid Attr 
Instance details

Defined in Graphics.Vty.Attributes

Methods

mempty :: Attr #

mappend :: Attr -> Attr -> Attr #

mconcat :: [Attr] -> Attr #

FromJSON Attr Source # 
Instance details

Defined in Vgrep.Environment.Config.Sources.File

NFData Attr 
Instance details

Defined in Graphics.Vty.Attributes

Methods

rnf :: Attr -> () #

type Rep Attr 
Instance details

Defined in Graphics.Vty.Attributes

type Rep Attr = D1 ('MetaData "Attr" "Graphics.Vty.Attributes" "vty-5.32-6kCPkGqlixFAsL1Ym27FhV" 'False) (C1 ('MetaCons "Attr" 'PrefixI 'True) ((S1 ('MetaSel ('Just "attrStyle") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MaybeDefault Style)) :*: S1 ('MetaSel ('Just "attrForeColor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MaybeDefault Color))) :*: (S1 ('MetaSel ('Just "attrBackColor") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MaybeDefault Color)) :*: S1 ('MetaSel ('Just "attrURL") 'NoSourceUnpackedness 'SourceStrict 'DecidedStrict) (Rec0 (MaybeDefault Text)))))

combineStyles :: Attr -> Attr -> Attr Source #

Combines two Attrs. This differs from mappend from the Monoid instance of Attr in that Styles are combined rather than overwritten.