3 ms·
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?
by a5c11 1y ago
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?
- kergonath 1y agoEmoji are good to highlight information. A red cross stands out in a list of green ticks much better than a [failed] among the [passed].
- gapan 1y ago> 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.
- tetha 1y agoAnd shapes, though you can get that with some ASCII art as well. I've had a few scripts some time ago that took a long time to run, so I wanted a progress indicator I could see from across the room - that way I could play some guitar while monitoring the computer doing stuff in the evening. Hence, the log messages got prefixed with tags like: > ] >> ] # normal progress /!\/!\] # it had to engage in a workaround x_x ] # if it had to stop.
- kergonath 1y ago> Rendering [failed] in red and [passed] in green would achieve the same. It's not emoji vs text. It's color vs no color. True, but my prompt is full of colour ASCII characters so emoji stand out. And also, emoji fare better than escape codes when they pass through pipes and stuff.
- thaumasiotes 1y ago> True, but my prompt is full of colour ASCII characters so emoji stand out. Huh? How often does your prompt appear inside the output you're reading?
- kergonath 1y agoEvery time I grep something. True, it’s not a major issue, but we are talking about preferences here.
- noisy_boy 1y ago> Rendering [failed] in red and [passed] in green would achieve the same. It's not emoji vs text. It's color vs no color. Thats only true for the terminal. When the same output is saved to a file or viewed via a non-terminal interface, the colors won't always be retained but the text/icons will be. E.g. in Jenkins console logs, you need to enable ASCII coloring explicitly to be able to see colored text.
- kps 1y agoAnd then I have to guess which unicode cross this particular tool picked so I can search for it in log.
- warkdarrior 1y agoAnd, 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.