Advertising

Welcome to SparkyLinux forums
Zapraszamy również na polsko-języczne Forum Linuxiarze.pl

Author Topic: Let it snow  (Read 2382 times)

Offline pavroo

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2248
  • Karma: 4
    • SparkyLinux
Let it snow
« on: December 20, 2014, 12:11:45 am »
Let in snow (in a text console):
Code: [Select]
clear;while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS));sleep 0.1;done|gawk '{a[$3]=0;for(x in a) {o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH ",o,x;printf "\033[%s;%sH*\033[0;0H",a[x],x;}}'or
Code: [Select]
clear;while :;do echo $LINES $COLUMNS $(($RANDOM%$COLUMNS)) $(printf "\u2744\n");sleep 0.1;done|gawk '{a[$3]=0;for(x in a) {o=a[x];a[x]=a[x]+1;printf "\033[%s;%sH ",o,x;printf "\033[%s;%sH%s \033[0;0H",a[x],x,$4;}}'
Nothing is easy as it looks. Danielle Steel
Join #sparkylinux.org at irc.libera.chat

Offline way12go

  • Sr. Member
  • ****
  • Posts: 480
  • Karma: 0
  • Life is a unique pattern.
Re: Let it snow
« Reply #1 on: December 20, 2014, 01:31:43 am »
Tried both of them. Simply awesome.
Life is a unique pattern.