Beer in my terminal: HOW?

2019-03-08 23:55发布

问题:

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.

回答1:

It is probably just a unicode character. In my terminal, this works:

$ echo -e "Hello, \xF0\x9F\x8D\xBA"
Hello,