3 ms·
Yes, "n" calculation is approximate: it's just the number of chars divided by the terminal's width. No guarantees it works with UTF-8, escape sequences, or if t
by teo_zero 2y ago
Yes, "n" calculation is approximate: it's just the number of chars divided by the terminal's width. No guarantees it works with UTF-8, escape sequences, or if the terminal get resized while it's running... Sorry, this is just a quick hack!
- kattouf 2y agoGot it, no need to sorry, this is a still cool example :thumbs-up: