glirc-2.33.1: Console IRC client

Copyright(c) Eric Mertens 2016
LicenseISC
Maintaineremertens@gmail.com
Safe HaskellNone
LanguageHaskell2010

Client.Image.MircFormatting

Description

This module parses mIRC encoded text and generates VTY images.

Synopsis

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.