![]() |
![]()
| ![]() |
![]()
NAMEstring-pad - pad strings to a fixed width SYNOPSISstring pad [-r | --right] [(-c | --char) CHAR] [(-w | --width) INTEGER] DESCRIPTIONstring pad extends each STRING to the given visible width by adding CHAR to the left. That means the width of all visible characters added together, excluding escape sequences and accounting for fish_emoji_width and fish_ambiguous_width. It is the amount of columns in a terminal the STRING occupies. The escape sequences reflect what fish knows about, and how it computes its output. Your terminal might support more escapes, or not support escape sequences that fish knows about. If -r or --right is given, add the padding after a string. If -c or --char is given, pad with CHAR instead of whitespace. The output is padded to the maximum width of all input strings. If -w or --width is given, use at least that. EXAMPLES>_ string pad -w 10 abc abcdef SEE ALSO
COPYRIGHT2024, fish-shell developers
|