How can Homebrew print a beer mug in Terminal?
Solution 1:
Homebrew is open source, so you can read its code to find out how it shows the icon. The line they're using is in the file formula_installer.rb
:
print "🍺 " if MacOS.version >= :lion
The first character in the print
command is a "🍺
", or unicode #1f37a 'BEER MUG'.
So it's not an icon but an funny unicode beer mug :)
Solution 2:
BTW, try another variants in terminal:
echo $'\360\237\215\270'
echo $'\360\237\215\271'
echo $'\360\237\215\273'
echo $'\360\237\215\274'