I got an image on terminal from the output of homebrew package manager I got a strange image from the output of brew like this . I'm curious about this behaviour. Is this a feature of brew or the image comes from some special character set? If a character in some character set, I think it can be employed to customise the terminal (prompt, etc.). 

Thanks and Best Regards!
That would be an emoji. You can insert them anywhere by clicking Edit > Special Characters > Emoji. The beer one is under the Objects subcategory.