vty-5.15.1: A simple terminal UI library

Safe Haskell | None
Language | Haskell2010

Graphics.Text.Width

Synopsis

- wcwidth :: Char -> Int
- wcswidth :: String -> Int
- safeWcwidth :: Char -> Int
- safeWcswidth :: String -> Int

# Documentation

wcwidth :: Char -> Int #

wcswidth :: String -> Int #

safeWcwidth :: Char -> Int #

Returns the display width of a character. Assumes all characters with unknown widths are 0 width.

safeWcswidth :: String -> Int #

Returns the display width of a string. Assumes all characters with unknown widths are 0 width.