Copyright | (c) Eric Mertens 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module parses mIRC encoded text and generates VTY images.
Synopsis
- parseIrcText :: Text -> Image'
- parseIrcText' :: Bool -> Text -> Image'
- plainText :: String -> Image'
- controlImage :: Char -> Image'
- mircColor :: Int -> Maybe (MaybeDefault Color)
- mircColors :: Vector Color
Documentation
parseIrcText :: Text -> Image' Source #
Parse mIRC encoded format characters and hide the control characters.
parseIrcText' :: Bool -> Text -> Image' Source #
Parse mIRC encoded format characters and render the control characters explicitly. This view is useful when inputting control characters to make it clear where they are in the text.
plainText :: String -> Image' Source #
Render a String
with default attributes and replacing all of the
control characters with reverse-video letters corresponding to caret
notation.
controlImage :: Char -> Image' Source #
Safely render a control character.
mircColors :: Vector Color Source #