← Back to context

Comment by mmastrac

5 months ago

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.

Or you could just rely on the ordinary, fixed-width font available in every terminal? I mean, what do you need emojis for in a bash script?

  • Emoji are good to highlight information. A red cross stands out in a list of green ticks much better than a [failed] among the [passed].

    • > Emoji are good to highlight information. A red cross stands out in a list of green ticks much better than a [failed] among the [passed].

      Rendering [failed] in red and [passed] in green would achieve the same. It's not emoji vs text. It's color vs no color.

      5 replies →

  • And, frankly, why even bother with lower-case characters? Upper case is plenty good -- it was good enough for the VT05, it should be good enough for your laptop.

What a coincidence that I spent a good portion of time trying to deal with the warning triangle emoji and see your comment today. Incidentally the info and green ticks are not so bad. Wonder why that specific one has width issues.

You could ship a terminal with your script. This is how apps like Slack deal with inconsistent handling of standardized content by shipping an embedded chromium.