啤酒在我的终端:怎么? [英] Beer in my terminal: HOW?

查看:115
本文介绍了啤酒在我的终端:怎么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Brew在我的终端上显示一个微小啤酒的图片???

如何做到这一点?我不甚。但是我需要知道,因为我所有的未来命令行应用程序还必须在其输出中放入小图片。

解决方案

可能只是一个unicode字符。在我的终端,这工作:

  $ echo -eHello,\xF0\x9F\x8D\xBA 
你好,

Brew puts a picture of a tiny beer in my terminal?!?!

How does it do this? I don't even. But I need to know, because all of my future command line applications must also put tiny pictures in their output.

解决方案

It is probably just a unicode character. In my terminal, this works:

$ echo -e "Hello, \xF0\x9F\x8D\xBA"
Hello, 
                        

这篇关于啤酒在我的终端:怎么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆