How can Homebrew print a beer mug in Terminal?
Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Music Box Puzzles
--
Chapters
00:00 Question
00:55 Accepted answer (Score 70)
01:29 Answer 2 (Score 13)
01:46 Thank you
--
Full question
https://superuser.com/questions/538061/h...
Accepted answer links:
[the file ]: https://github.com/mxcl/homebrew/blob/ma...
[unicode #1f37a 'BEER MUG']: http://www.fileformat.info/info/unicode/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #bash #terminalapp #homebrew
#avk47
--
Music by Eric Matyas
https://www.soundimage.org
Track title: Music Box Puzzles
--
Chapters
00:00 Question
00:55 Accepted answer (Score 70)
01:29 Answer 2 (Score 13)
01:46 Thank you
--
Full question
https://superuser.com/questions/538061/h...
Accepted answer links:
[the file ]: https://github.com/mxcl/homebrew/blob/ma...
[unicode #1f37a 'BEER MUG']: http://www.fileformat.info/info/unicode/...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #bash #terminalapp #homebrew
#avk47
ACCEPTED ANSWER
Score 69
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 :)
ANSWER 2
Score 14
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'