glirc-2.34: Console IRC client

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

Client.Image.LineWrap

Description

Provides utilities for line wrapping images.

Synopsis

Documentation

lineWrap Source #

Arguments

:: Int

first line length

-> Image'

image

-> [Image']

splits

lineWrapPrefix Source #

Arguments

:: Int

terminal width

-> Image'

prefix image

-> Image'

unwrapped image

-> [Image']

wrapped image

fullLineWrap Source #

Arguments

:: Int

terminal width

-> Image'

unwrapped image

-> [Image']

wrapped image

This version of line wrap wraps without regard for word boundaries.

terminate Source #

Arguments

:: Int

terminal width

-> Image

unwrapped image

-> Image

wrapped image

Trailing space with default attributes deals with bug in VTY where the formatting will continue past the end of chat messages. This adds an extra space if a line doesn't end on the terminal edge.