Linux How-To

Bins – Attracts ASCII Artwork Bins and Shapes in Linux Terminal

SEOClerks

Bins is an easy, configurable command line program which may draw any form of field round its enter textual content. It filters textual content and attracts shapes round it – it’s virtually a textual content filter. The truth is it’s designed to be built-in together with your editor as a textual content filter (helps Vim default). It may draw shapes starting from easy packing containers to complicated ASCII artwork.

On this article, we’ll learn to use the packing containers utility to attract shapes within the Linux terminal.

Find out how to Set up Bins Utility in Linux

To put in the packing containers utility in Linux, use the suitable command to your distribution.

$ sudo apt set up packing containers [On Debian/Ubuntu]
$ sudo yum set up packing containers [On CentOS/RHEL]
$ sudo dnf set up packing containers [On Fedora]

Now that you’ve packing containers put in, be aware that it makes use of the $HOME/.packing containers consumer particular configuration file or the /and so forth/packing containers/boxes-config system-wide configuration file.

Let’s have some Linux terminal enjoyable.

To see the default packing containers design, merely present some enter textual content to it as proven.

$ echo “Hey, that is Tecmint.com! Thanks for following us.” | packing containers

/******************************************************/
/* Hey, that is Tecmint.com! Thanks for following us. */
/******************************************************/

To specify one other design, use the -d flag as proven.

$ echo “Hey, that is Tecmint.com! Thanks for following us.” | packing containers -d boy

.-“””-.
/ .===.
/ 6 6 /
( ___/ )
_________________ooo_______/_____________________
/
| Hey, that is Tecmint.com! Thanks for following us. |
______________________________ooo_________________/
| | |
|_ | _|
| | |
|__|__|
/-‘Y’-
(__/ __)

To align or place textual content contained in the field, use the -a flag. Let’s reveal how this works with the next instance (the place the c means heart).

$ echo “Hey, that is Tecmint.com! Thanks for following us.” | packing containers -d diamonds

/ / / / /
//// //// //// //// ////
///////////////////////////////
////////////////////////////////
///Hey, that is Tecmint.com! Thanks for following us. ///
/ /
/ /
// //
// //
/ /
/ /
/// ///
////////////////////////////////
///////////////////////////////
//// //// //// //// ////
/ / / / /

$ echo “Hey, that is Tecmint.com! Thanks for following us.” | packing containers -d diamonds -a c

/ / / / /
//// //// //// //// ////
///////////////////////////////
////////////////////////////////
/// ///
/ /
/ /
// Hey, that is Tecmint.com! Thanks for following us. //
// //
/ /
/ /
/// ///
////////////////////////////////
///////////////////////////////
//// //// //// //// ////
/ / / / /

Within the Christmas season, you should utilize the santa design to ship your loved ones and associates glad vacation messages, for instance.

$ echo “Tecmint.com needs you a Merry Christmas and a Pleased New 12 months 2019” | packing containers -d santa

.-““”-.
/______;
|
(/ a a )(_)
(.-.).-.)
_______________________ooo__( ^ )___________________________
/ ‘-.___.-‘
| Tecmint.com needs you a Merry Christmas and a Pleased New 12 months 2019 |
________________________________________ooo_______________________/
|_ | _| jgs
___|___/
___
|_ | _|
/-‘Y’-
(__/ __)

To checklist all obtainable designs/kinds, run the next command.

$ packing containers -l

59 Out there Types in “/and so forth/packing containers/boxes-config”:
————————————————-

ada-box
(public area), coded by Neil Chicken <[email protected]>:

—————
— —
— —
—————

ada-cmt
(public area), coded by Neil Chicken <[email protected]>:


— common Ada
— feedback

It helps line justification, field dimension specification, textual content padding, indentation, use of standard expressions and far more.

Valentine’s day coming nearer, and also you wished to impress your girlfriend or spouse in a Linux manner, then use packing containers as proven.

$ echo -e “ntMe: Will you be my Valentine?ntGirl: No wayntMe: sudo will you be my Valentine?ntGirl: Sure..sure..sure! Let’s go!” | packing containers -d boy

.-“””-.
/ .===.
/ 6 6 /
( ___/ )
_________ooo_______/_____________
/
| |
| Me: Will you be my Valentine? |
| Lady: No manner |
| Me: sudo will you be my Valentine? |
| Lady: Sure..sure..sure! Let’s go! |
______________________ooo_________/
| | |
|_ | _|
| | |
|__|__|
/-‘Y’-
(__/ __)

For extra data and examples, go to http://packing containers.thomasjensen.com/examples.html.

Bins is a command line utility that attracts a field round its enter textual content. On this article, we’ll learn to set up and use packing containers utility to attract shapes within the Linux terminal. Use the suggestions type beneath to share your ideas about it.

Source link

Related Articles

Leave a Reply

Back to top button