Skip to content

Commit

Permalink
tweak no back progress bar example (nushell#308)
Browse files Browse the repository at this point in the history
  • Loading branch information
fdncred committed Oct 24, 2022
1 parent 911e536 commit 3b4f9e2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions progress_bar/progress_bar_no_back.nu
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3b4f9e2

Please sign in to comment.