1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 07:07:46 +00:00

tweak no back progress bar example (#308)

This commit is contained in:
Darren Schroeder 2022-10-23 20:23:20 -05:00 committed by GitHub
parent 911e53674f
commit 3b4f9e2df4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6,10 +6,11 @@ ansi cursor_off
let idx = ($tick mod 8)
let cur_block = ($blocks | get $idx)
print -n $"(ansi -e '1000D')($cur_block | str lpad -c $blocks.7 -l $cur_size)"
# sleep 1ms
sleep 20ms
}
print -n $"(ansi -e '1000D')"
}
char newline
print $"($blocks.7 | str lpad -c $blocks.7 -l $pb_size)"
'Done'
ansi cursor_on