Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
coolicer
V2EX  ›  Linux

shell 怎么输出特殊字符?

  •  
  •   coolicer · May 8, 2014 · 4850 views
    This topic created in 4568 days ago, the information mentioned may be changed or developed.
    像一些 勾和叉,直接显示出一个方框。
    4 replies  •  2014-05-08 16:09:44 +08:00
    binux
    binux
    May 8, 2014
    1
    字体
    coolicer
    coolicer
    OP
    May 8, 2014
    2
    @binux 哪种字体可以
    ibudao
    ibudao
    May 8, 2014❤️1
    3
    那些勾(check mark)和叉(x mark)本身就是unicode字符,所以我要你需要的是:
    unicode特殊字符: http://unicode-table.com/en/sets/special-symbols/
    bash如何输出unicode字符: http://stackoverflow.com/questions/602912/how-do-you-echo-a-4-digit-unicode-character-in-bash
    输出勾(叉:echo -e '\u2714 \u2718'
    jiangpeng
    jiangpeng
    May 8, 2014
    4
    还是得字体支持 http://superuser.com/questions/393834/how-to-configure-putty-to-display-these-characters

    我这用的 Anonymous Pro 显示的就是小方块,字体换成 宋体 就能正确显示
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1017 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 18:49 · PVG 02:49 · LAX 10:49 · JFK 13:49
    ♥ Do have faith in what you're doing.