File tree 3 files changed +33
-12
lines changed
3 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 7
7
8
8
Mozilla Foundation (https://www.mozilla.org/en-US/contact/)
9
9
Telefonica S.A.
10
- Nikita Prokopov (
[email protected] ) github.com/tonsky
10
+ Nikita Prokopov (
[email protected] ) github.com/tonsky
Original file line number Diff line number Diff line change @@ -307,17 +307,18 @@ _| |_ _||_ __| ___| |__ |___
307
307
308
308
# Progress bars
309
309
310
- [>----------]
311
- [=>---------]
312
- [==>--------]
313
- [===>-------]
314
- [====>------]
315
- [=====>-----]
316
- [======>----]
317
- [=======>---]
318
- [========>--]
319
- [=========>-]
320
- [==========>]
310
+ [...........] [-----------]
311
+ [#..........] [>----------]
312
+ [##.........] [=>---------]
313
+ [###........] [==>--------]
314
+ [####.......] [===>-------]
315
+ [#####......] [====>------]
316
+ [######.....] [=====>-----]
317
+ [#######....] [======>----]
318
+ [########...] [=======>---]
319
+ [#########..] [========>--]
320
+ [##########.] [=========>-]
321
+ [###########] [==========>]
321
322
322
323
# Sanity check
323
324
Original file line number Diff line number Diff line change
1
+ #! bb
2
+
3
+ (def chars [" \u ee06" " \u ee07" " \u ee08" " \u ee09" " \u ee0a" " \u ee0b" ])
4
+
5
+ (loop [i 0 ]
6
+ (print
7
+ (str
8
+ \u001b \u000d ; ; ESC CR Moves the cursor to column zero
9
+ (if (= 0 i) \uee00 \uee03) ; ; Progress start
10
+ (str/join
11
+ (for [j (range 2 17 )]
12
+ (if (<= j i) \uee04 \uee01)))
13
+ (if (= 17 i) \uee05 \uee02)
14
+ " "
15
+ (nth chars (mod i 6 ))
16
+ " "
17
+ (-> i (/ 17.0 ) (* 100 ) (int )) " % " ))
18
+ (flush )
19
+ (Thread/sleep 200 )
20
+ (recur (mod (inc i) 18 )))
You can’t perform that action at this time.
0 commit comments