on master help sign in
Graphics.Text.Width: add module docs
commit5327c94b12a172116b4f04345ebf7eec0461268a authorJonathan Daugherty <cygnus@foobox.com> dateThu 5 Mar 2020, 14:31 (7 years ago) parent3d8dbf6
1 file changed+9
src/Graphics/Text/Width.hs+9
src/Graphics/Text/Width.hs+9
@@ -1,6 +1,15 @@
11-- Copyright 2009 Corey O'Connor
22{-# OPTIONS_GHC -D_XOPEN_SOURCE #-}
33{-# LANGUAGE ForeignFunctionInterface #-}
4+-- | This module provides functions to measure the terminal column width
5+-- of characters and strings.
6+--
7+-- The functions provided in this module all ultimately make calls to
8+-- the C implementation in @cbits/mk_wcwidth.c@. That code manages some
9+-- global state that carries a table of Unicode character widths. For
10+-- more details, see 'Graphics.Vty.UnicodeWidthTable.Install', the C
11+-- code, and the "Multi-Column Character Support" section of the project
12+-- @README@.
413module Graphics.Text.Width
514 ( wcwidth
615 , wcswidth