Skip to content

elkirkmo/mow-the-lawn

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Mow The Lawn

A portable, and silly, mowing-the-lawn animation spinner for bash



Table of Contents

Overview

Getting Started

  1. Copy paste the MowTheLawn.pm into a script

  2. Make the script executable

    chmod +x NameOfFile.pm
    
  3. Run that bad boy!

    perl NameOfFile.pm --loop-without-pid

    or as the animation for a 'long running process'

    sleep 5 & NameOfFile.pm

Script Options

key type description required example
--mower string The text used to create the mower optional --mower '`.==.'
--mower-color string The color codes for the mower optional --mower-color '38;5;106'
--grass string The text used to create the grass. One char limit optional --grass ','
--lawn-color string The color codes for the grass optional --lawn-color '38;5;106'
--lawn-length Integer The number of blades of grass optional --lawn-length 40
--speed Integer The speed (sleep time), between animation frames. Shorter is faster optional --speed 100
--pid Integer The parent process pid (used to explicitly pass a parent process id) optional --pid PID_HERE
--loop-without-pid Boolean Forces the animation to run continuosly, without parent process pid optional --loop-without-pid

About

A bash spinner/throbber focusing on environment portability... and silliness!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Perl 100.0%