Copyright | (c) Eric Mertens, 2016 |
---|---|
License | ISC |
Maintainer | emertens@gmail.com |
Safe Haskell | None |
Language | Haskell2010 |
This module provides the renderer for the client's text box input.
- textboxImage :: ClientState -> (Int, Image)
- renderContent :: Palette -> Content -> (String, Image)
- computeCharWidth :: Int -> String -> Int
- myWcwidth :: Char -> Int
- myWcswidth :: String -> Int
- renderLine :: Palette -> String -> Image
Documentation
textboxImage :: ClientState -> (Int, Image) Source #
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