haskell / 9 / libraries / terminfo-0.4.1.5 / system-console-terminfo-color.html

System.Console.Terminfo.Color

Maintainer judah.jacobson@gmail.com
Stability experimental
Portability portable (FFI)
Safe Haskell Safe
Language Haskell2010

Description

termColors :: Capability Int Source

The maximum number of of colors on the screen.

data Color Source

Instances
Instances details
Show Color Source
Instance details

Defined in System.Console.Terminfo.Color

Eq Color Source
Instance details

Defined in System.Console.Terminfo.Color

Methods

(==) :: Color -> Color -> Bool

(/=) :: Color -> Color -> Bool

Ord Color Source
Instance details

Defined in System.Console.Terminfo.Color

Methods

compare :: Color -> Color -> Ordering

(<) :: Color -> Color -> Bool

(<=) :: Color -> Color -> Bool

(>) :: Color -> Color -> Bool

(>=) :: Color -> Color -> Bool

max :: Color -> Color -> Color

min :: Color -> Color -> Color

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 s Source

Restores foreground/background colors to their original settings.

© The University of Glasgow and others
Licensed under a BSD-style license (see top of the page).
https://downloads.haskell.org/~ghc/9.4.2/docs/libraries/terminfo-0.4.1.5/System-Console-Terminfo-Color.html