Mac tip: How to use the terminal to make the screen have a snow effect!

No snowflakes are imperfect in winter. Have you not enjoyed the short-lived snowflakes? The editor is here today to introduce to you how to achieve the snowing effect by entering specific instructions on the Mac terminal window. If you like, come and operate it!
Insert picture description here

Open terminalInsert picture description here

After opening the terminal, please click the Shell menu in the menu at the top of the Mac screen. Then, in the Shell menu, click New Window-Ocean to create a new terminal window with a blue background. The snow effect is even better.
Insert picture description here

3... Then please enter the following code in the terminal window, you can directly copy and paste it into the terminal window, and finally press the Enter key to execute:

ruby -e ‘C=stty size.scan(/\d+/)[1].to_i;S=[“2743”.to_i(16)].pack(“U*”);a={};puts “\033[2J”;loop{a[rand©]=0;a.each{|x,o|;a[x]+=1;print “\033[#{o};#{x}H \033[#{a[x]};#{x}H#{S} \033[0;0H”};$stdout.flush;sleep 0.1}’

Insert picture description here

After the execution, you can see the snowflakes falling from the top of the terminal, which is very beautiful.Insert picture description here

After watching the snow in the terminal window, if you want to exit the terminal, press the shortcut key Command+Q combination button, and then click Close.Insert picture description here

Guess you like

Origin blog.csdn.net/Mac881030/article/details/112885892