Fabian42 / bash_scripts

Contains various bash scripts that I have written mainly for myself.
The Unlicense
5 stars 0 forks source link

len, wrap, tablewrap: Handle more escape sequences #6

Open Fabian42 opened 2 years ago

Fabian42 commented 2 years ago

Currently only \e[#m works, where # is a number, but many more escape sequences exist. Printing out to a terminal might be one way to get the actual length, but there could be many more edge cases with that. Handling them as individual characters is probably still better.