Nice progress bar. Quite useless if used alone, but it can be a nice addition to scripts.
alias progressbar {
window -ahCkodp +fe @Loading 1 1 255 40
drawfill @Loading 1 1 1 1
var %i 1
while (%i <= 255) {
drawline -r @Loading $rgb(%i,$calc(255 - %i),0) 2 $calc(0 + %i) 20 $calc(0 + %i) 40
drawtext -r @Loading $rgb(%i,$calc(255 - %i),0) Arial 12 55 0 Loading, please wait...
inc %i
var %t 1
while (%t <= 150) { inc %t }
; replace the value above to change the speed, lower means faster
}
window -c @Loading
echo Enter your set of commands instead of this echo please :)
}
it\'s nice, but i changed something to make it nicer (at least to my taste): i added the +d switch on the window, and am now drawing this: { drawline -r @Loading $rgb(%i,$calc(255 - %i),0) 2 $calc(0 + %i) 0 $calc(0 + %i) 20 | drawtext -r @Loading $rgb(255,255,255) Verdana 9 110 2 Loading! } but anyway, nice work!