神奇的小工具boxes

boxes

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.

boxex 是 linux 下的一款命令行工具,可以用字符组成盒子把你的文字包围在里面。
就像下面这样:

    Hello World!  ==>

     __________________
    /\                 \  
    \_|                |  
      |  Hello World!  |  
      |                |  
      |  ______________|_ 
      \_/_______________/
    
    
    /******************/
    /*                */
    /*  Hello World!  */
    /*                */
    /******************/
     
             \\\///
            / _  _ \
          (| (.)(.) |)
    .---.OOOo--()--oOOO.---.
    |                      |
    |     Hello World!     |
    |                      |
    '---.oooO--------------'
         (   )   Oooo.
          \ (    (   )
           \_)    ) /
                 (_/

安装

Debiandebian-based, 如 Ubuntu, 还有 Windows 10 Ubuntu Subsystem,安装都很简单,
只需要命令行执行:

apt-get install boxes

使用

boxes --help 查看帮助。linux工具使用大法,先看帮助。

boxes -l 查看有多少可以使用的盒子格式。 已知有个叫dog的盒子模型。

输入echo "I am testing" | boxes -d dog -a c 将生成:

          __   _,--="=--,_   __
         /  \."    .-.    "./  \
        /  ,/  _   : :   _  \/` \
        \  `| /o\  :_:  /o\ |\__/
         `-'| :="~` _ `~"=: |
            \`     (_)     `/
     .-"-.   \      |      /   .-"-.
.---{     }--|  /,.-'-.,\  |--{     }---.
 )  (_)_)_)  \_/`~-===-~`\_/  (_(_(_)  (
(             I am testing              )
 )                                     (
'---------------------------------------'

-d 参数表示选择哪一个盒子模型,
-a 参数表示对齐方式。

自定义盒子模型

这个工具还支持自定义盒子模型。

其他

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值