terminfo-0.3.2.5: Haskell bindings to the terminfo library.

Portabilityportable (FFI)
Stabilityexperimental
Maintainerjudah.jacobson@gmail.com
Safe HaskellSafe

System.Console.Terminfo.Color

Description

 

Synopsis

Documentation

termColors :: Capability IntSource

The maximum number of of colors on the screen.

withForegroundColor :: TermStr s => Capability (Color -> s -> s)Source

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.

withBackgroundColor :: TermStr s => Capability (Color -> s -> s)Source

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.

setForegroundColor :: TermStr s => Capability (Color -> s)Source

Sets the foreground color of all further text output, using either the setaf or setf capability.

setBackgroundColor :: TermStr s => Capability (Color -> s)Source

Sets the background color of all further text output, using either the setab or setb capability.

restoreDefaultColors :: TermStr s => Capability sSource

Restores foreground/background colors to their original settings.