Skip to content

wakterm.pad_left(string, min_width)

Since: Version 20210502-130208-bff6815d

The functionality described in this section requires version 20210502-130208-bff6815d of wakterm, or a more recent version.

Returns a copy of string that is at least min_width columns (as measured by wakterm.column_width).

If the string is shorter than min_width, spaces are added to the left end of the string.

For example, wakterm.pad_left("o", 3) returns " o".

See also: wakterm.truncate_left, wakterm.pad_right.