1{-# OPTIONS_GHC -Wall #-}
2module Reporting.Progress.Bar
18render :: Int -> Int -> Int -> String
19render successes failures total =
25 fromIntegral numDone / fromIntegral total
28 truncate (fraction * width)
31 truncate width - unitsDone
34 ++ replicate unitsDone '='
35 ++ replicate unitsLeft ' '
37 ++ show numDone ++ " / " ++ show total
42 '\r' : replicate (length (render 49999 50000 99999)) ' ' ++ "\r"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list