HORIZON HASKELLDocslts/ghc-9.10.x248f8f02026-10-05Search names, modules, packages, or :: a typeCtrl K

GHC 9.10.3 · lts/ghc-9.10.x · 248f8f0 · 2026-10-05

Modulevty-6.5Haskell2010

Graphics.Vty.DisplayAttributes

  • 4 types
  • 2 values
  • Packagevty-6.5
  • Exports6
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceDisplayAttributes.hs
datadata DisplayAttrDiff
#

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.

Instances3Show, Semigroup, Monoid
datadata StyleStateChange
#
Instances2Eq, Show

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.