Back to Wezterm

wezterm.pad_right

docs/config/lua/wezterm/pad_right.md

latest439 B
Original Source

wezterm.pad_right(string, min_width)

{{since('20210502-130208-bff6815d')}}

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 right end of the string.

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

See also: wezterm.truncate_left, wezterm.pad_left.