A little holiday magic: how to make a snow directly in Mac Terminal
Tips Makradar / / December 19, 2019
Winter slowly comes into its own, outside the crackling of the first frost, and in the air the spirit of Christmas. For a festive mood lacks one did - and this is of course the snow! Well if you do not hurt nature and city zaporoshila soft, squeaky snow. But what if the window slush or no rain? Over nature, we unfortunately have no control, but if you really want - you can make a snowfall on the right on your Mac. How to make a snow blizzard directly in the terminal window, you will learn from this little note.
* * *
The first thing open Terminal. He, as you know, is in a folder Programs — Utilities. Also, you can run it through Launchpad or Spotlight. If you changed the theme and at the moment you do not have a white font on a black background - it is better to change the settings, otherwise the snow will not implausible and festive. Therefore, the color change manually or include for example the topic "Pro".
Ready for the snow? Then dress warmly and copy the code that's in the Terminal:
ruby -e 'C = `stty size`.scan (/ d + /) [1] .to_i; S = [ "2743" .to_i (16)] pack ( "U *"); a = {}; puts "33 [2J"; loop {a [rand (C)] = 0; a.each {|. x, o |; a [x] + = 1; print "33 [# {o}; # {x} H 33 [# {a [x]}; # {x} H # {S} 33 [0; 0H "}; $ stdout.flush; sleep 0.1} '
after clicking Enter, in the window terminal go white, fluffy snow. It will be infinitely fall, and gather in one line at the bottom of the window. For best results - Increase the font size from the control panel ⌘I or by pressing a few times ⌘+. You can pause by pressing snowfall CtrlZ.
Completing the process of our impromptu snow load on the processor by only 5-10%. In the case of battery life, you probably will not go to leave the snow on. But when running on the network, if you are somewhere a while waste can safely deploy the Terminal window to full screen, and to please others with a festive mood.
* * *
The terminal can literally everything - from serious problems like these to entertainment. How do you prepare for the holidays, dear readers? In your office has set a Christmas tree? Share the festive mood in the comments!