←back to thread

178 points dgl | 1 comments | | HN request time: 0.338s | source
Show context
mmastrac ◴[] No.44362863[source]
I'd be happy if we could get terminals to agree on how wide the warning triangle emoji renders. The emoji are certainly useful for scripts, but often widths are such a crapshoot. I cannot add width detection to every bash script I write for every emoji I want to use.

If only there was a standards body that could perhaps spec how these work in terminals.

replies(4): >>44362918 #>>44363071 #>>44363211 #>>44369636 #
1. twic ◴[] No.44369636[source]
Until then, as it happens, an old colleague of mine is working on a JS library to paper over the cracks:

https://github.com/davidje13/tty-typesetter

I haven't used it in anger so can't vouch for it!