:: String -> Int is:exact -package:string-conversions -package:speculate -package:ghc-boot -package:hledger-lib -package:base -package:containers package:vty

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