vty-6.2: A simple terminal UI library
Safe HaskellSafe-Inferred
LanguageHaskell2010

Graphics.Vty.DisplayAttributes

Synopsis

Documentation

data DisplayAttrDiff Source #

difference between two display attributes. Used in the calculation of the operations required to go from one display attribute to the next.

Previously, vty would reset display attributes to default then apply the new display attributes. This turned out to be very expensive: A *lot* more data would be sent to the terminal than required.

data StyleStateChange Source #

Style attribute changes are transformed into a sequence of apply/removes of the individual attributes.

Instances

Instances details
Show StyleStateChange Source # 
Instance details

Defined in Graphics.Vty.DisplayAttributes

Methods

showsPrec :: Int -> StyleStateChange -> ShowS

show :: StyleStateChange -> String

showList :: [StyleStateChange] -> ShowS

Eq StyleStateChange Source # 
Instance details

Defined in Graphics.Vty.DisplayAttributes

data DisplayColorDiff Source #

Difference between two display color attribute changes.

Instances

Instances details
Show DisplayColorDiff Source # 
Instance details

Defined in Graphics.Vty.DisplayAttributes

Methods

showsPrec :: Int -> DisplayColorDiff -> ShowS

show :: DisplayColorDiff -> String

showList :: [DisplayColorDiff] -> ShowS

Eq DisplayColorDiff Source # 
Instance details

Defined in Graphics.Vty.DisplayAttributes

data URLDiff Source #

Constructors

LinkTo !ByteString 
NoLinkChange 
EndLink 

Instances

Instances details
Show URLDiff Source # 
Instance details

Defined in Graphics.Vty.DisplayAttributes

Methods

showsPrec :: Int -> URLDiff -> ShowS

show :: URLDiff -> String

showList :: [URLDiff] -> ShowS

Eq URLDiff Source # 
Instance details

Defined in Graphics.Vty.DisplayAttributes

Methods

(==) :: URLDiff -> URLDiff -> Bool

(/=) :: URLDiff -> URLDiff -> Bool

fixDisplayAttr :: FixedAttr -> Attr -> FixedAttr Source #

Given the previously applied display attributes as a FixedAttr and the current display attributes as an Attr produces a FixedAttr that represents the current display attributes. This is done by using the previously applied display attributes to remove the KeepCurrent abstraction.

displayAttrDiffs :: FixedAttr -> FixedAttr -> DisplayAttrDiff Source #

Determines the diff between two display&color attributes. This diff determines the operations that actually get output to the terminal.