Files
wx/src/ui/repeat.sh
Christer Warén fbaa5780d9 Refactoring Code
2025-11-10 12:40:35 +02:00

14 lines
218 B
Bash

wxi-repeat() {
if [[ $1 == " " ]]
then
local str=$1 n=$2 spaces
printf -v spaces "%*s" $n " "
printf "%s" "${spaces// /$str}"
else
for i in $(seq 1 $2);
do
echo -en $1
done
fi
}