Screensaver

alias screensaver='for ((;;)); do echo -ne "\033[$((1+RANDOM%LINES));$((1+RANDOM%COLUMNS))H\033[$((RANDOM%2));3$((RANDOM%8))m$((RANDOM%10))"; sleep 0.1 ; done'
Console screensaver.

10
By: lkj
2011-03-24 16:58:14

What Others Think

Maybe anyone could make it "remember" the consoles contents? Should try to open a new shell or somewhat like this?
nkoehring · 599 weeks and 4 days ago
This leaves the terminal in the color of the last emitted character after you do ^C
TheGuyOfDoom · 599 weeks and 3 days ago
@nkoehring: I do not understand. Maybe you need just run `reset`? @TheGuyOfDoom: Just type `reset` afret ^C.
lkj · 599 weeks and 2 days ago
@nkoehring: Now I get it. It can be done with `screendump` but needs root permission to run it and I am not sure how to run it on ptsX - it is easy on ttyX. Tou can use sth like: TEMP_FILE=`tempfile` ; sudo screendump > $TEMPFILE ; screensaver ; # after ^C cat $TEMP_FILE ; rm $TEMPFILE #----- It can be done in script with `trap`. You can make function: function restore_screen() { cat $TEMP_FILE rm $TEMP_FILE } and trap SIGINT liki this: trap restore_screen SIGINT If you will do that in script it will restore your tty after ^C.
lkj · 599 weeks and 2 days ago
If you run screen, you could put that into an idle command, and also make it run it in a new screen so that it doesn't mess up your old terminal. E.g. idle 300 eval "screen screensaver" "idle 0" My .screenrc has this: idle 300 eval "screen ncmatrix -f -o -u 10" "idle 0"
unhammer · 597 weeks and 3 days ago
MaxRemind Inc, US based healthcare IT company offers medical billing credentialing services in USA. Our Medical Credentialing Services in USA are highly appreciated by US physicians. We also offer medical billing services for all specialties. Our home health agency software is widely used by healthcare nurse practitioners in USA.
stevematt · 88 weeks and 3 days ago
I think you should try to learn more about does cbd get you high because it's a very interesting topic. CBD oil has even been used to safely treat insomnia and anxiety in children with post-traumatic stress disorder. CBD oil can help in the treatment of acne due to its anti-inflammatory properties and ability to reduce sebum production.
MarkUltra · 23 weeks and 2 days ago
I think you should try to learn more about does cbd get you high because it's a very interesting topic. CBD oil has even been used to safely treat insomnia and anxiety in children with post-traumatic stress disorder. CBD oil can help in the treatment of acne due to its anti-inflammatory properties and ability to reduce sebum production.
MarkUltra · 23 weeks and 2 days ago
I think smoking weed doesn't make me a bad person, so I disagree with some of the comments here. Moreover marijuana is a great way to relieve stress and relax. I think it's okay to smoke marijuana using one of these bongs https://everythingfor420.com/blogs/everything-420/bomgs . This is unlikely to harm the body more than the stress that you can suffer from on a daily basis.
MarkUltra · 14 weeks and 1 day ago
Pug Puppies for Sale Near Me pugs puppies for sale teacup pugs for sale pug puppies for sale by owner pug puppies ohio PUG PUPPY FOR SALE NEAR ME PUG PUPPIES FOR SALE pug puppies for sale in kentucky Pug Puppies for Sale Under $500 Near Me pug puppies for sale in texas pug puppies for sale $200 pugs for sale near me under $500 pugs for sale under $400 near me pugs for sale near me puppies for sale near me under $500 pug puppies for sale under $1,000 near me pug for sale pug puppies for sale under $300 Brindle Pug Pitbull Pug Mix Pugs for sale cheap Cheap pug affordable pug puppies for sale near me black pugs for sale near me White Pugs for sale pug dog for sale free pug puppies pug puppies for sale in my area mn pug breeders pug puppies indiana pugs for sale michigan PUG PUPPY ADOPTION Pug puppies for sale Pug puppies for sale near me Pug puppies near me Pug Puppies for Sale Under $500 Near Me Cute Pug Puppies Black pug puppies Black pug puppies for sale pug puppies for adoption black pug puppies for sale near me chihuahua pug mix puppies how much is a pug puppy teacup pug puppies baby pug puppies pictures of pug puppies pug puppies for sale in Ohio pug puppies price pug mix puppies teacup pug puppies for sale best food for pug puppy newborn pug puppies pug puppies craigslist pug puppies for sale craigslist adorable pug puppies how much does a pug puppy cost Pitbull pug mix puppies pug pit mix puppy pug puppies for sale $200 pug puppies for sale in NJ Pug puppies for sale in Wisconsin pug puppy cost pug puppy food royal canin pug puppy royal canin pug puppy food fawn pug puppy pug puppies for sale florida pug puppies for sale in Indiana pug puppies for sale in KY pug puppies for sale in NC pug dog puppy AKC Registered Pug Puppies For sale cheap pug puppies for sale near me cheap pug puppies for sale in California cheap pug puppies for sale in nj Black Pug Puppies for sale pugs puppies for sale
rahimhh21 · 5 weeks ago

What do you think?

Any thoughts on this command? Does it work on your machine? Can you do the same thing with only 14 characters?

You must be signed in to comment.

What's this?

commandlinefu.com is the place to record those command-line gems that you return to again and again. That way others can gain from your CLI wisdom and you from theirs too. All commands can be commented on, discussed and voted up or down.

Share Your Commands



Stay in the loop…

Follow the Tweets.

Every new command is wrapped in a tweet and posted to Twitter. Following the stream is a great way of staying abreast of the latest commands. For the more discerning, there are Twitter accounts for commands that get a minimum of 3 and 10 votes - that way only the great commands get tweeted.

» http://twitter.com/commandlinefu
» http://twitter.com/commandlinefu3
» http://twitter.com/commandlinefu10

Subscribe to the feeds.

Use your favourite RSS aggregator to stay in touch with the latest commands. There are feeds mirroring the 3 Twitter streams as well as for virtually every other subset (users, tags, functions,…):

Subscribe to the feed for: