Back to Wezterm

wezterm.column_width

docs/config/lua/wezterm/column_width.md

latest524 B
Original Source

wezterm.column_width(string)

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

Given a string parameter, returns the number of columns that that text occupies in the terminal, which is useful together with format-tab-title and update-right-status to compute/layout tabs and status information.

This is different from string.len which returns the number of bytes that comprise the string.