@Dukebf
2017-11-17T07:52:12.000000Z
字数 674
阅读 1642
开发
在开发命令行软件时,有时候需要可能想要在软件运行时,出现一个酷酷的banner.
就类似于下面这种:

我们可以借助命令行软件boxes来完成制作.
Ubuntu/Debian 用户
# apt-get install boxes
RHEL / CentOS / Fedora Linux 用户
# yum install boxes
Example1:
# echo -e "This is a example" | boxes
效果如下:
/*********************//* This is a example *//*********************/
Example2:
# echo -e "\nAsset Hunter\nVersion 0.1\nhttps://github.com/" | boxes -d sunset
效果如下:
.. | .\ | /'. \ ' / .''. .'```'. .'<>...:::::::`.......`:::::::..<><>: :<><>:Asset Hunter :<><>:Version 0.1 :<><>:https://github.com/ :<><>:..........................:<><><><><><><><><><><><><><><><><>
语法规则:
-d : 是用来选择图案的
查看能使用的图样
