HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Moduleterminfo-0.4.1.7Haskell2010

System.Console.Terminfo.Color

  • 1 type
  • 6 values
  • Packageterminfo-0.4.1.7
  • Exports7
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceColor.hs
valuewithForegroundColor :: TermStr s => Capability (Color -> s -> s)
#

This capability temporarily sets the terminal's foreground color while outputting the given text, and then restores the terminal to its default foreground and background colors.

valuewithBackgroundColor :: TermStr s => Capability (Color -> s -> s)
#

This capability temporarily sets the terminal's background color while outputting the given text, and then restores the terminal to its default foreground and background colors.