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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 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.