stylized-0.1.3: Ways to output stylized text on ANSI consoles.Source codeContentsIndex
System.Console.ANSI.Stylized
Synopsis
ColorIntensity (Dull, Vivid)
Color (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White)
ConsoleIntensity (BoldIntensity, FaintIntensity, NormalIntensity)
Underlining (SingleUnderline, DoubleUnderline, NoUnderline)
type Style = (ColourOption, StyleOption)
type ColourOption = (ColorIntensity, Color)
type StyleOption = (ConsoleIntensity, Underlining)
hResetGR :: Handle -> IO ()
resetGR :: IO ()
hPutStrS :: Handle -> Style -> String -> IO ()
putStrS :: Style -> String -> IO ()
hPutStrLnS :: Handle -> Style -> String -> IO ()
putStrLnS :: Style -> String -> IO ()
hPutS :: Handle -> [(Style, String)] -> IO ()
putS :: [(Style, String)] -> IO ()
hPutLnS :: Handle -> [(Style, String)] -> IO ()
putLnS :: [(Style, String)] -> IO ()
hPutT :: (t -> Style) -> Handle -> [(t, String)] -> IO ()
putT :: (t -> Style) -> [(t, String)] -> IO ()
hPutLnT :: (t -> Style) -> Handle -> [(t, String)] -> IO ()
putLnT :: (t -> Style) -> [(t, String)] -> IO ()
Documentation
ColorIntensity (Dull, Vivid)
Color (Black, Red, Green, Yellow, Blue, Magenta, Cyan, White)
ConsoleIntensity (BoldIntensity, FaintIntensity, NormalIntensity)
Underlining (SingleUnderline, DoubleUnderline, NoUnderline)
type Style = (ColourOption, StyleOption)Source
type ColourOption = (ColorIntensity, Color)Source
type StyleOption = (ConsoleIntensity, Underlining)Source
hResetGR :: Handle -> IO ()Source
Given an handle, reset graphic rendition
resetGR :: IO ()Source
On stdout, reset graphic rendition
hPutStrS :: Handle -> Style -> String -> IO ()Source
Given an handle, set style and put string
putStrS :: Style -> String -> IO ()Source
On stdout, set style and put string
hPutStrLnS :: Handle -> Style -> String -> IO ()Source
Given an handle, set style and put string followed by newline
putStrLnS :: Style -> String -> IO ()Source
On stdout, set style and put string followed by newline
hPutS :: Handle -> [(Style, String)] -> IO ()Source
Given an handle, for each item set style and put string
putS :: [(Style, String)] -> IO ()Source
On stdout, for each item set style and put string
hPutLnS :: Handle -> [(Style, String)] -> IO ()Source
Given an handle, for each item set style and put string followed by newline
putLnS :: [(Style, String)] -> IO ()Source
On stdout, for each item set style and put string followed by newline
hPutT :: (t -> Style) -> Handle -> [(t, String)] -> IO ()Source
Given a function mapping some type t to Style, return a function behaving like hPutS
putT :: (t -> Style) -> [(t, String)] -> IO ()Source
Given a function mapping some type t to Style, return a function behaving like putS
hPutLnT :: (t -> Style) -> Handle -> [(t, String)] -> IO ()Source
Given a function mapping some type t to Style, return a function behaving like hPutLnS
putLnT :: (t -> Style) -> [(t, String)] -> IO ()Source
Given a function mapping some type t to Style, return a function behaving like putLnS
Produced by Haddock version 2.4.2