How can Homebrew print a beer mug in Terminal?
--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Realization
--
Chapters
00:00 How Can Homebrew Print A Beer Mug In Terminal?
00:33 Accepted Answer Score 69
01:00 Answer 2 Score 14
01:10 Thank you
--
Full question
https://superuser.com/questions/538061/h...
--
Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...
--
Tags
#macos #bash #terminalapp #homebrew
#avk47
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------
Music by Eric Matyas
https://www.soundimage.org
Track title: Realization
--
Chapters
00:00 How Can Homebrew Print A Beer Mug In Terminal?
00:33 Accepted Answer Score 69
01:00 Answer 2 Score 14
01:10 Thank you
--
Full question
https://superuser.com/questions/538061/h...
--
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'