Well it's about an IMDb script.
We want the colors out. So I changed this original part:
alias -l _rating {
var %s = $ceil($1), %i 1
while (%i <= 10) { if (%i <= %s) { var %z $+(%z,7*) } | else { var %z $+(%z,14*) } | inc %i }
return $+(11[,%z,11])
}
to
alias -l _rating {
var %s = $ceil($1), %i 1
while (%i <= 10) { if (%i <= %s) { var %z $+(%z,*) } | else { var %z $+(%z,*) } | inc %i }
return $+([,%z,])
}
But now, (the output are 1o * signs so..
ration ********** where the rating is like 7 so you saw 7 stars in color and 3 not in color. but now i removed the colors, you can't see the difference anymore.
so i tried to replace the else stars command with dots, with _ signs but it doesn't look nice. so nice i thought, let's fill the non colored stars (in the original code) with spaces
but how