The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: Progress
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 01-21-2008
adderek adderek is offline
Registered User
  
 

Join Date: Sep 2007
Location: Poland
Posts: 111
this should work (just fill red parts)

typeset goto_x_y=...
typeset char='/|\-'
typeset -i tick=0
while [[ create your own condition ]] ;do
print -- "${goto_x_y}${char[${tick}]}"
tick=$tick+1
[[ $tick -gt 3 ]] && tick=0
done

Usually you should be able to use backspace instead of goto_x_y

I have not tested this but it should work.