Emoticons in the OS-X Terminal

I found a really neat little feature of the OS-X terminal today. You can display colourful little icons on the terminal by displaying a unicode character. You can enter a unicode character on the terminal with code such as the following (which works in the bash shell).

echo $'\xF0\x9F\x98\x83'

this example will display the emoticon of "U+1F603 SMILING FACE WITH OPEN MOUTH". The codes are the UTF-8 hex values for the character which you can see on the page.

Have a look at some of these pages for some more inspiration:

Find one that you like and replace the UTF-8 codes for the codes for the image you want to see.

Thanks for reading.