HORIZON HASKELLDocslts/ghc-10.0.x8fef28d2026-11-02Search packagesCtrl K
Theme: |

GHC 10.0.0.20260917 · lts/ghc-10.0.x · 8fef28d · 2026-11-02

Moduleterminfo-0.4.1.7Haskell2010

System.Console.Terminfo.Color

Synopsis
  • 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.