string-width
Get the visual width of a string - the number of columns required to display it
table-layout
Stylable text tables, handling ansi colour. Useful for console output.
widest-line
Get the visual width of the widest line in a string - the number of columns required to display it