LoginSignup
12
11

More than 5 years have passed since last update.

LinuxのTerminalでビールアイコン(Beer Mug)を表示する。

Last updated at Posted at 2013-07-20

Mac OS XでHomebrewを使っている人にはお馴染みのビールアイコン(Beer Mug)をLinuxのTerminalで表示する方法です。(ただし、モノクロ)
いろいろ調べた結果、CentOS 6では単に絵文字のフォントが無いだけだと判明。

Mac OS Xの場合

$ echo -e "\xF0\x9f\x8d\xba"

beermug_macosx.png ←結果

CentOS 6の場合

$ wget http://users.teilar.gr/~g1951d/Symbola.zip
$ unzip Symbola.zip -d ~/.fonts
$ echo -e "\xF0\x9f\x8d\xba"

beermug_centos6.png ←結果

参考サイト

How can Homebrew print a beer mug in Terminal?
http://superuser.com/questions/538061/how-can-homebrew-print-a-beer-mug-in-terminal

Unicode Character 'BEER MUG' (U+1F37A)
http://www.fileformat.info/info/unicode/char/1f37a/index.htm

Make Emoji Work in Linux
http://www.kirsle.net/blog/kirsle/make-emoji-work-in-linux

【Linux】全Unicode fonts install に挑戦(CentOS6)
http://pythonlife.seesaa.net/article/310893977.html

Unicode Fonts for Ancient Scripts
http://users.teilar.gr/~g1951d/

12
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
11