Igbe - Na-ese ASCII Art igbe na Ụdị na Linux Terminal


Igbe bụ mmemme ahịrị iwu dị mfe, nwere ike ịhazi nke nwere ike ise ụdị igbe ọ bụla gburugburu ederede ntinye ya. Ọ na-enyocha ederede ma na-esepụta ọdịdị gburugburu ya - ọ bụ ihe nzacha ederede. N'ezie emebere ya ka ijikọ ya na onye nchịkọta akụkọ gị dị ka nzacha ederede (na-akwado ndabara Vim). Ọ nwere ike ise ụdị sitere na igbe dị mfe ruo nka ASCII dị mgbagwoju anya.

N'isiokwu a, anyị ga-amụta otú e si eji igbe igbe na-ese onyinyo na Linux ọnụ.

Otu esi etinye Utility igbe na Linux

Iji wụnye akụrụngwa igbe na Linux, jiri iwu kwesịrị ekwesị maka nkesa gị.

$ sudo apt install boxes  [On Debian/Ubuntu]
$ sudo yum install boxes  [On CentOS/RHEL]
$ sudo dnf install boxes  [On Fedora]

Ugbu a etinyere igbe, rịba ama na ọ na-eji faịlụ nhazi kpọmkwem $HOME/.boxes ma ọ bụ /etc/boxes/boxes-config system-wide nhazi faịlụ.

Ka anyị nweta ụfọdụ ihe ọchị Linux ọnụ.

Ka ịhụ nhazi igbe ndabara, naanị nye ya ụfọdụ ederede ntinye dịka egosiri.

$ echo "Hey, this is linux-console.net! Thanks for following us." | boxes

/******************************************************/
/* Hey, this is linux-console.net! Thanks for following us. */
/******************************************************/

Iji kọwapụta imewe ọzọ, jiri ọkọlọtọ -d dị ka egosiri.

$ echo "Hey, this is linux-console.net! Thanks for following us." | boxes -d boy

                        .-"""-.
                       / .===. \
                       \/ 6 6 \/
                       ( \___/ )
  _________________ooo__\_____/_____________________
 /                                                  \
| Hey, this is linux-console.net! Thanks for following us. |
 \______________________________ooo_________________/
                       |  |  |
                       |_ | _|
                       |  |  |
                       |__|__|
                       /-'Y'-\
                      (__/ \__)

Iji kwado ma ọ bụ dowe ederede n'ime igbe ahụ, jiri ọkọlọtọ -a. Ka anyị gosi otu nke a si arụ ọrụ na ihe atụ na-esonụ (ebe c pụtara etiti).

$ echo "Hey, this is linux-console.net! Thanks for following us." | boxes -d diamonds

       /\          /\          /\          /\          /\
    /\//\\/\    /\//\\/\    /\//\\/\    /\//\\/\    /\//\\/\
 /\//"///\\/\//"///\\/\//"///\\/\//"///\\/\//"///\\/\
//"//\/\\///"//\/\\///"//\/\\///"//\/\\///"//\/\\///\\
\\//\/Hey, this is linux-console.net! Thanks for following us.  \/\\//
 \/                                                          \/
 /\                                                          /\
//\\                                                        //\\
\\//                                                        \\//
 \/                                                          \/
 /\                                                          /\
//\\/\                                                    /\//\\
\\///\\/\//"///\\/\//"///\\/\//"///\\/\//"///\\/\//"//
 \/\\///"//\/\\///"//\/\\///"//\/\\///"//\/\\///"//\/
    \/\\//\/    \/\\//\/    \/\\//\/    \/\\//\/    \/\\//\/
       \/          \/          \/          \/          \/
$ echo "Hey, this is linux-console.net! Thanks for following us." | boxes -d diamonds -a c

       /\          /\          /\          /\          /\
    /\//\\/\    /\//\\/\    /\//\\/\    /\//\\/\    /\//\\/\
 /\//"///\\/\//"///\\/\//"///\\/\//"///\\/\//"///\\/\
//"//\/\\///"//\/\\///"//\/\\///"//\/\\///"//\/\\///\\
\\//\/                                                    \/\\//
 \/                                                          \/
 /\                                                          /\
//\\   Hey, this is linux-console.net! Thanks for following us.   //\\
\\//                                                        \\//
 \/                                                          \/
 /\                                                          /\
//\\/\                                                    /\//\\
\\///\\/\//"///\\/\//"///\\/\//"///\\/\//"///\\/\//"//
 \/\\///"//\/\\///"//\/\\///"//\/\\///"//\/\\///"//\/
    \/\\//\/    \/\\//\/    \/\\//\/    \/\\//\/    \/\\//\/
       \/          \/          \/          \/          \/

N'oge ekeresimesi, ị nwere ike iji atụmatụ Santa ziga ndị ezinụlọ gị na ndị enyi gị ozi ezumike obi ụtọ, dịka ọmụmaatụ.

$ echo "linux-console.net wishes you a Merry Christmas and a Happy New Year 2019" | boxes -d santa

                                 .-"``"-.
                                /______; \
                               {_______}\|
                               (/ a a \)(_)
                               (.-.).-.)
  _______________________ooo__(    ^    )___________________________
 /                             '-.___.-'                            \
| linux-console.net wishes you a Merry Christmas and a Happy New Year 2019 |
 \________________________________________ooo_______________________/
                               |_  |  _|  jgs
                               \___|___/
                               {___|___}
                                |_ | _|
                                /-'Y'-\
                               (__/ \__)

Ka ịdepụta atụmatụ/ụdị niile dị, mee iwu na-esonụ.

$ boxes -l

59 Available Styles in "/etc/boxes/boxes-config":
-------------------------------------------------

ada-box
(public domain), coded by Neil Bird <neil.bird[email >:

    ---------------
    --           --
    --           --
    ---------------


ada-cmt
(public domain), coded by Neil Bird <[email >:

    --
    -- regular Ada
    -- comments
...

Ọ na-akwado izi ezi ahịrị, nkọwa nha igbe, mpempe akwụkwọ ederede, indentation, ojiji nke okwu oge niile na ọtụtụ ndị ọzọ.

Ụbọchị Valentine na-abịaru nso, ma ịchọrọ ịmasị enyi gị nwanyị ma ọ bụ nwunye gị n'ụzọ Linux, wee jiri igbe dị ka egosiri.

$ echo -e "\n\tMe: Will you be my Valentine?\n\tGirl: No way\n\tMe: sudo will you be my Valentine?\n\tGirl: Yes..yes..yes! Let's go!" | boxes -d boy

                        .-"""-.
                       / .===. \
                       \/ 6 6 \/
                       ( \___/ )
          _________ooo__\_____/_____________
         /                                  \
        |                                    |
        | Me: Will you be my Valentine?      |
        | Girl: No way                       |
        | Me: sudo will you be my Valentine? |
        | Girl: Yes..yes..yes! Let's go!     |
         \______________________ooo_________/
                       |  |  |
                       |_ | _|
                       |  |  |
                       |__|__|
                       /-'Y'-\
                      (__/ \__)

Maka ozi ndị ọzọ na ọmụmaatụ, gaa na http://boxes.thomasjensen.com/examples.html.

Igbe bụ ngwa ahịrị iwu na-adọta igbe gburugburu ederede ntinye ya. N'isiokwu a, anyị ga-amụta otú e si wụnye na iji igbe iji see udi na Linux ọnụ. Jiri mpempe nzaghachi n'okpuru kesaa echiche gị gbasara ya.