I-BTColor: Iskripthi esincinci sokuhombisa i-GNU / Linux Terminal

I-BTColor: Iskripthi esincinci sokuhombisa i-GNU / Linux Terminal

I-BTColor: Iskripthi esincinci sokuhombisa i-GNU / Linux Terminal

Namhlanje kwakhona, njengamaxesha ngamaxesha, siza kubonisa isixhobo esincinci okanye usetyenziso, oluluncedo kubo bonke abo ulwenziwo abathandi Zixatyiswe kakhulu Iinkqubo zokusebenza zeGNU / Linux, ngakumbi iifayile ze terminal. Ke namhlanje, siza kuthetha "BTColor".

"BTColor", intwana nje Isikripthi se-bash, Endiyenzileyo ukuyenza ibe ntle i-my Phendula Abasebenzi ababiziweyo Imimangaliso GNU / Linux, ingakumbi ngezo ntsuku zokubhiyozela u #DesktopFriday I-Linuxeros.

I-Pywal: Isixhobo esinomdla sokuzenzela iiTheminali zethu

I-Pywal: Isixhobo esinomdla sokuzenzela iiTheminali zethu

Ngaphambi kokungena kumxholo wale nkwenkwana elishicilelwe yenziwe ibizwa "BTColor", kulungile ukukhumbula ukuba xa ufuna ukwandisa ulwazi lwakho malunga nokwenza ngokwezifiso i I-GNU / Linux Distros, ungaphonononga emva kokugqiba olu papasho, ezinye iimpapasho zangaphambili ezinxulumene nomxholo, ezinje, pywal, oko ikukuthi:

"I-Pywal sisixhobo esidala umbala wemibala kwimibala ephambili emfanekisweni. Emva koko faka imibala kuyo yonke inkqubo kwaye kubhabho kuyo yonke imiboniso oyithandayo. Okwangoku kukho imibala emi-5 yokuxhasa imibala emva, nganye inikezela ngombala owahlukileyo wemifanekiso nganye. Uyakufumana isikimu sombala esinomtsalane. I-Pywal ikwaxhasa imixholo echazwe kwangaphambili kwaye ingaphezulu kwama-250 kwimixholo eyakhelweyo. Unokwenza iifayile zakho zemixholo ukuze wabelane nabanye." I-Pywal: Isixhobo esinomdla sokuzenzela iiTheminali zethu

Inqaku elidibeneyo:
I-Pywal: Isixhobo esinomdla sokuzenzela iiTheminali zethu

Inqaku elidibeneyo:
Komorebi: Ungazenza njani iidesika zethu ezinemvelaphi yoopopayi?
Inqaku elidibeneyo:
Conkys: Uyenza njani ngokwezifiso iiConkys zethu ukuba zingasebenzisi iNeofetch?
Inqaku elidibeneyo:
Iintsuku ze-Desktop ye-GNU / yeLinux: IiWebhusayithi zeWallpaper ukuze zibhiyozele
Inqaku elidibeneyo:
I-XFCE: Uyenza njani ngokusesikweni imeko yeLinux Mouse Desktop?

I-BTColor: Umbala weTheminali yoMbala

Yintoni iSkripthi seBTColor?

Njengoko benditshilo ekuqaleni kweposti, "BTColor" ayikho ngaphezulu kwe:

"Iskripthi esincinci nesiluncedo se-bash shell endisenzileyo ukuhombisa i-terminal ngebhanti yokubhaliweyo kunye nemifanekiso ngombala omnyama nomhlophe okanye ogcweleyo, onokuba luncedo ngakumbi ngakumbi kwezo ntsuku zokubhiyozela i- #FridayDeDesk Linuxeros."

Isebenza njani i-BTColor script?

Ngokusisiseko iskripthi "BTColor" Into eyenzayo yile faka imibala un Ibhodi ye-ASCII yombhalo okanye umfanekiso, ezazenziwe ngaphambili ngesandla okanye ngokuzenzekelayo kwiiwebhusayithi ezizodwa kubo, ezinje:

Ngelixa, ukuze ufakele imibala Iibhodi ze-ASCII, Isebenzisa itekhnoloji okanye ulwazi olucaciswe gca kwezi webhusayithi zimbini:

Injani ikhowudi yeScript seBTColor?

Ikhowudi incinci kwaye kulula ukuyiqonda, kwaye ke, ukuyiguqula. Kwaye oku kulandelayo:

#!/usr/bin/env bash

# https://manytools.org/hacker-tools/ascii-banner/ -> Banners ASCII
# https://www.ascii-art-generator.org/es.html -> Creador de arte ASCII online
# https://misc.flogisoft.com/bash/tip_colors_and_formatting -> bash:tip_colors_and_formatting
# https://robotmoon.com/256-colors/#foreground-colors -> xterm 256 colors

initializeANSI()
{

esc=""

# a="${esc}[0m" # brillo por defecto
# b="${esc}[1m" # brillo alto
# c="${esc}[2m" # brillo bajo

# d="${esc}[4m" # subrayar banner
# e="${esc}[5m" # parpadear banner
# f="${esc}[7m" # invertir colores del banner (foreground and background)
# g="${esc}[8m" # ocultar banner

# h="${esc}[40m" # color del fondo banner: negro
# i="${esc}[41m" # color del fondo banner: rojo
# j="${esc}[42m" # color del fondo banner: verde
# k="${esc}[43m" # color del fondo banner: amarillo
# l="${esc}[44m" # color del fondo banner: blue
# m="${esc}[45m" # color del fondo banner: magenta
# n="${esc}[46m" # color del fondo banner: cyan
# o="${esc}[47m" # color del fondo banner: gris claro
p="${esc}[49m" # color del fondo banner: color por defecto
# k="${esc}[100m" # color del fondo banner: gris obscuro
# r="${esc}[101m" # color del fondo banner: rojo claro
# s="${esc}[102m" # color del fondo banner: verde claro
# t="${esc}[103m" # color del fondo banner: amarillo claro
# u="${esc}[104m" # color del fondo banner: azul claro
# v="${esc}[105m" # color del fondo banner: magenta claro
# w="${esc}[106m" # color del fondo banner: cyan claro
# x="${esc}[107m" # color del fondo banner: blanco

colorfont001="${esc}[38;5;226m" # Amarillo
colorfont002="${esc}[38;5;20m" # Azul
colorfont003="${esc}[38;5;1m" # Rojo
colorfont004="${esc}[38;5;15m" # Blanco

reset="${esc}[0m"

}

initializeANSI

cat << EOF

${p}${colorfont004}

${colorfont003} ******* ** ** **
${colorfont003} /**////** /** /** //
${colorfont003} /** /** ***** ****** /** ***** /** ** ******* ** ** ** **
${colorfont001} /** /** **///** **//// ****** **///**/** /**//**///**/** /**//** **
${colorfont001} /** /**/*******//***** **///**/*******/** /** /** /**/** /** //***
${colorfont003} /** ** /**//// /////**/** /**/**//// /** /** /** /**/** /** **/**
${colorfont003} /******* //****** ****** //******//******/********/** *** /**//****** ** //**
${colorfont003} /////// ////// ////// ////// ////// //////// // /// // ////// // //

${colorfont001} .,;;;;;;;;;;;;;;;;;;;;;;;,,.
${colorfont001} :k00OOOOOOOOOOOOOOOOOOOOOOOO00x,
${colorfont001} :X0:. ...... .cKK;
${colorfont001} dWd. ,d,'o; .kWl
${colorfont001} dWd. .kO:d0; .kWl
${colorfont002} .dWd. .,o00:':' .kWl
${colorfont002} .dWd. .:ldOOo:. .kWl
${colorfont004} .dWd. 'cxOkdl,..lkko' .kWl
${colorfont004} .dWd. .,lkOxc' .cOKKl. .kWl
${colorfont002} .dWd. ,o0NKo. .. .kWl
${colorfont002} .dWd. .:lxkkxl,. .kWl
${colorfont003} .dWd. .:okOdl;. .kWl
${colorfont003} .dWd. 'lxkOo' .kWl
${colorfont003} .dWd. .;x0d' .kWl
${colorfont003} oWx. ,o: .ONc
${colorfont003} ,OXx:;;,,,,,,,,,;;;,,;;;;,,,;:kXk.
${colorfont003} .cxOOOOOOOOOOOOOOOOOOOOOOOOOkd:.

${reset}

EOF

Ukukhuphela, ukufakela, ukusetyenziswa kunye nezikrini

Ngokwenene akukho sidingo sokukhuphela kunye nokufaka nantoni na, kuba yonke ikhowudi iphezulu apho. Kungangcono ukope kwaye uncamathisele ngokupheleleyo kwifayile yokubhaliweyo kwaye uyibize, mhlawumbi, into efana nale: izimvo_lpi_btcolor.sh. Ukusukela, nantsi indlela endenze ngayo, ngesiqhelo Ukuphendula kweMX Linux kubizwa Imimangaliso endihlala ndiyisebenzisa.

Ke kuya kufuneka kuphela ukuyiphumeza nge Umyalelo olula womyalelo kwindlela yefayile apho ibirekhodwe khona, kwimeko yam yayi kulandelayo:

«bash /opt/milagros/scripts/milagros_lpi_btcolor.sh»

Kwaye ngaloo nto, siza kubona ifayile ye- Umbhalo weBhena ithini "UkusukaLinux" Imibala ngemibala ye Iflegi yaseSpain kunye neBhanari yemifanekiso ene logo ye "UkusukaLinux" ngemibala ye Iflegi yaseVenezuela.

I-BTColor: Umfanekiso weskrini

Eminye, kuya kufuneka kuphela ukuzama ukufaka ezintsha Umbhalo kunye neMifanekiso yeZibhengezo, zenziwe ngesandla okanye ngokuzenzekelayo, zabela imibala eyahlukeneyo efakwe kuyo, kuba, okwangoku, izisa kuphela i-4 ngokungagqibekanga, Mthubi, Luhlaza, Bomvu, Mhlophe ngenxa Iiphikseli (abalinganiswa) YeBhanari.

Umfanekiso oqhelekileyo wezigqibo zenqaku

Isiphelo

Siyathemba ukuba oku "Uncedo oluncinci" malunga «BTColor», iluncedo oluncinci Isikripthi se-bash evumela ukuhombisa i kwisigxina nge okubhaliweyo kunye nemifanekiso en mnyama nomhlophe okanye umbala ogcweleyo, ingakumbi ngezo ntsuku zokubhiyozela u #DesktopFriday I-Linuxeros; Inomdla omkhulu kwaye iluncedo kuyo yonke «Comunidad de Software Libre y Código Abierto» kunye negalelo elikhulu ekusasazekeni kwendalo emangalisayo, enkulu kunye nokukhulayo kwezicelo ze «GNU/Linux».

Okwangoku, ukuba uyithandile le publicación, Sukuyeka yabelani nabanye, kwiiwebhusayithi zakho ozithandayo, amajelo, amaqela okanye uluntu lwenethiwekhi yoluntu okanye iinkqubo zemiyalezo, ngokukhethekileyo simahla, sivulekile kunye / okanye sikhuseleke ngakumbi njenge yocingoUphawuIMododon okanye enye Ulungelelaniso, ngokukhethekileyo.

Kwaye khumbula ukutyelela iphepha lethu lasekhaya e «UkusukaLinux» ukuphonononga ezinye iindaba, kunye nokujoyina ijelo lethu elisemthethweni le- Umnxeba ovela kwiDesdeLinuxNgelixa, ngolwazi oluthe kratya, ungandwendwela nayiphi na Ilayibrari ekwi-Intanethi njengaye VulaLibra y IJedIT, ukufikelela nokufunda iincwadi zedijithali (ii-PDFs) kwesi sihloko okanye ezinye.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Yiba ngowokuqala ukuphawula

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa.

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.