Boxes is a command line program that draws a box around its input text. It can remove and repair those boxes, too. You can easily make your own box designs if you wish, but many designs are already provided.linux
boxex 是 linux 下的一款命令行工具,能够用字符组成盒子把你的文字包围在里面。
就像下面这样:git
Hello World! ==> __________________ /\ \ \_| | | Hello World! | | | | ______________|_ \_/_______________/ /******************/ /* */ /* Hello World! */ /* */ /******************/ \\\/// / _ _ \ (| (.)(.) |) .---.OOOo--()--oOOO.---. | | | Hello World! | | | '---.oooO--------------' ( ) Oooo. \ ( ( ) \_) ) / (_/
Debian 和 debian-based, 如 Ubuntu, 还有 Windows 10 Ubuntu Subsystem,安装都很简单,
只须要命令行执行: github
apt-get install boxes
ide
boxes --help
查看帮助。linux工具使用大法,先看帮助。工具
boxes -l
查看有多少可使用的盒子格式。 已知有个叫dog
的盒子模型。命令行
输入echo "I am testing" | boxes -d dog -a c
将生成:code
__ _,--="=--,_ __ / \." .-. "./ \ / ,/ _ : : _ \/` \ \ `| /o\ :_: /o\ |\__/ `-'| :="~` _ `~"=: | \` (_) `/ .-"-. \ | / .-"-. .---{ }--| /,.-'-.,\ |--{ }---. ) (_)_)_) \_/`~-===-~`\_/ (_(_(_) ( ( I am testing ) ) ( '---------------------------------------'
-d
参数表示选择哪个盒子模型,-a
参数表示对齐方式。ci
这个工具还支持自定义盒子模型。rem