Files
LLeMbas-TTY/docs/config/lua/wezterm/pad_left.md
T
2021-05-02 07:29:43 -07:00

432 B

wezterm.pad_left(string, min_width)

Since: nightly builds only

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

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

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

See also: wezterm.truncate_left, wezterm.pad_right.