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:
parent
911e53674f
commit
3b4f9e2df4
1 changed files with 3 additions and 2 deletions
|
@ -6,10 +6,11 @@ ansi cursor_off
|
||||||
let idx = ($tick mod 8)
|
let idx = ($tick mod 8)
|
||||||
let cur_block = ($blocks | get $idx)
|
let cur_block = ($blocks | get $idx)
|
||||||
print -n $"(ansi -e '1000D')($cur_block | str lpad -c $blocks.7 -l $cur_size)"
|
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'
|
'Done'
|
||||||
ansi cursor_on
|
ansi cursor_on
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue