标签归档:figlet

watch&figlet

安装 watch

sudo brew install watch

iTerm or Terminal(终端)

示例代码

watch -t -n1 "date"

2016    3 29        20  33 54   CST

watch && figlet

watch -t -n1 "date +%T|figlet -f banner"

 #####    ###    #   #####  #        #  #        #####
#     #  #   #  ### #     # #    #  ### #    #  #     #
      # #     #  #        # #    #   #  #    #  #     #
 #####  #     #      #####  #    #      #    #   ######
#       #     #  #        # #######  #  #######       #
#        #   #  ### #     #      #  ###      #  #     #
#######   ###    #   #####       #   #       #   #####

<!– more –>

figlet

安装 figlet

$ sudo brew install figlet

iTerm or Terminal(终端)

示例代码

$ figlet "webclown"

              _          _
__      _____| |__   ___| | _____      ___ __
\ \ /\ / / _ \ '_ \ / __| |/ _ \ \ /\ / / '_ \
 \ V  V /  __/ |_) | (__| | (_) \ V  V /| | | |
  \_/\_/ \___|_.__/ \___|_|\___/ \_/\_/ |_| |_|

设置字体

$ figlet -f tinker-toy "W e b c l o w n"

o       o             o                 o
|       |             |                 |
o   o   o     o-o     O-o       o-o     |     o-o     o   o   o    o-o
 \ / \ /      |-'     |  |     |        |     | |      \ / \ /     |  |
  o   o       o-o     o-o       o-o     o     o-o       o   o      o  o

<!– more –>

Wiki

  • http://www.figlet.org/