Brew puts a picture of a tiny beer in my terminal?!?!
How does it do this? I don't even. But I need to know, because all of my future command line applications must also put tiny pictures in their output.
Brew puts a picture of a tiny beer in my terminal?!?!
How does it do this? I don't even. But I need to know, because all of my future command line applications must also put tiny pictures in their output.
It is probably just a unicode character. In my terminal, this works:
$ echo -e "Hello, \xF0\x9F\x8D\xBA"
Hello, 🍺
It's outputting Unicode character U+1F37A (BEER MUG), which is in the "Miscellaneous Symbols and Pictographs" (aka. Emoji) range.
Unfortunately, as discussed in this blog, we linux user's won't be able to appreciate the humour of this question as well as those of you running OSX...
To see what emoji your operating system supports, check out wikipedia's article on the subject.