glirc-2.12: Console IRC client

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

Client.Image.Textbox

Description

This module provides the renderer for the client's text box input.

Synopsis

Documentation

computeCharWidth Source #

Arguments

:: Int

rendered width

-> String

input string

-> Int

codepoints that will fit

Compute the number of code-points that will be visible when the given string is truncated to fit in the given number of terminal columns.

myWcwidth :: Char -> Int Source #

Version of wcwidth that accounts for how control characters are rendered

myWcswidth :: String -> Int Source #

Version of wcswidth that accounts for how control characters are rendered