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