Ukuphucula umgca wokuyalela weWindows

Isinyanzelo somyalelo weWindows ongahlonitshwayo unokuqaqanjelwa ngokubonakalayo kumanyathelo ambalwa alula. Ke ngekhe uhlengahlengise umbala kunye nobungakanani bomgca wokuyalela, kodwa uphinde ukwandise ngokusebenza (ukwandisa i-buffer, ukufaka iseti enkulu yezixhobo ze-UNIX). Nangona isikhawulezisi somyalelo singasondeli kwiPowerShell 6.0 okanye entsha Windows 10 iBash Shell , ayifuni ukufihla imisebenzi yemihla ngemihla.


Kwiipropathi, ubungakanani besixhamli bonyuswe saya kwi-500:

Ukuphucula umgca wokuyalela weWindows

Emva koko khetha ubungakanani befonti ye-14, ifonti "Consolas" kunye "nesibindi".

Ukuphucula umgca wokuyalela weWindows

Ubungakanani befestile (ububanzi nokuphakama) nako kunokunyuswa:

Ukuphucula umgca wokuyalela weWindows

Okokugqibela, hlengisa imibala yokubhaliweyo kwefestile (R: 0, G: 255, B: 0) kunye nemvelaphi yefestile (R: 0, G: 0, B: 0):

Ukuphucula umgca wokuyalela weWindows

Kuya kufuneka uphinde ezi zicwangciso kabini (kube kanye xa usiyalela umthetho ngaphandle kwamalungelo omlawuli kunye nomyalelo wokuyalela ngeakhawunti yomlawuli).

Umyalelo unceda ekufumaneni i-Prompt enemibala (umz.:

prompt $E[91m$P$G$E[92m

I- $ E imele umlinganiswa we-ESC (oqala ulandelelwano lokubaleka), [91m yikhowudi yemibala yokukhawulezisa (kule meko bomvu ukukhanya), $ P yendlela, $ G yomlinganiswa ">". $ E [92m icwangcisa kwakhona umbala wale tekisi ilandelayo ibe luhlaza.

Ukuphucula umgca wokuyalela weWindows

Ukuqinisekisa ukuba ukukhawuleza kuhlala ngokusisigxina kumbala owahlukileyo, ifayile yebhetshi enomxholo yenziwa kwi-% AppData% \ Prom.bat, umzekelo

prompt $E[91m$P$G$E[92m
CLS

kwaye yenza ixabiso lohlobo "REG_EXPAND_SZ" enegama "AutoRun" kunye nexabiso "% AppData% \ prompt.bat" kwi HKEY_CURRENT_USER \ SOFTWARE \ MICROSOFT \ Command Processor.

Ngokufaka i-CYGWIN (nazo zonke iipakeji) kunye nokuseta indlela C: \ cygwin64 \ bin kwindawo ye-PATH eyahlukileyo, ufumana imvakalelo encinci yeLinux.:

Ukuphucula umgca wokuyalela weWindows

Emva