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

shell 怎么输出特殊字符?

  •  
  •   coolicer · May 8, 2014 · 4473 views
    This topic created in 4387 days ago, the information mentioned may be changed or developed.
    像一些 勾和叉,直接显示出一个方框。
    4 replies    2014-05-08 16:09:44 +08:00
    binux
        1
    binux  
       May 8, 2014
    字体
    coolicer
        2
    coolicer  
    OP
       May 8, 2014
    @binux 哪种字体可以
    ibudao
        3
    ibudao  
       May 8, 2014   ❤️ 1
    那些勾(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
        4
    jiangpeng  
       May 8, 2014
    还是得字体支持 http://superuser.com/questions/393834/how-to-configure-putty-to-display-these-characters

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