终端字形logo

  网上有很多的项目都有一个自己的字形logo,而我也在开发一个小的项目,也想要生成一个终端字形的logo,于是找到这款小工具,分享给大家:FIGlet

  “FIGlet is a program for making large letters out of ordinary text”

Mac OS X

starnight:~ starnight$ brew install figlet        # 安装
starnight:~ starnight$ figlet "hello world"
 _          _ _                            _     _
| |__   ___| | | ___   __      _____  _ __| | __| |
| '_  / _  | |/ _     / / / _ | '__| |/ _` |
| | | |  __/ | | (_) |   V  V / (_) | |  | | (_| |
|_| |_|\___|_|_|\___/    \_/\_/ \___/|_|  |_|\__,_|

  看起来是不是有点样子。

Ubuntu

  我猜安装命令是这样的:

root@starnight:~# apt-get install figlet
root@starnight:~# figlet kid
 _    _     _ 
| | _(_) __| |
| |/ / |/ _` |
|   <| | (_| |
|_|\_\_|\__,_|
              

  就这样简单介绍到这,给出示例看起来更方便。

原文地址:https://www.cnblogs.com/Hi-blog/p/8490457.html