:: String -> Int is:exact -package:gpolyline -package:numeric-prelude -package:ghc-boot -package:string-conversions -package:speculate package:vty

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