vty-5.28.2: A simple terminal UI library

Safe HaskellSafe
LanguageHaskell2010

Graphics.Vty.UnicodeWidthTable.Query

Synopsis

Documentation

buildUnicodeWidthTable :: Char -> IO UnicodeWidthTable Source #

Construct a unicode character width table by querying the terminal connected to stdout. This works by emitting characters to stdout and then querying the terminal to determine the resulting cursor position in order to measure character widths. Consequently this will generate a lot of output and may take a while, depending on your system performance. This should not be run in a terminal while it is controlled by Vty.

The argument specifies the upper bound code point to test when building the table. This allows callers to decide how much of the Unicode code point space to scan when building the table.

This does not handle exceptions.