Commit Graph

42 Commits

Author SHA1 Message Date
Pranav Srinivas Kumar
276d476d4d Fixed the NOMINMAX issue for Windows build with latest termcolor #76, replaced #pragma once with #ifndef-define pairs 2021-05-03 09:37:44 -05:00
Pranav Srinivas Kumar
4790bfddca Added carriage return before prefix text 2021-03-13 10:48:45 -06:00
Seth Parker
d11ffd91c6 Round time estimate up to nearest nanosecond 2020-11-16 11:27:16 -05:00
Seth Parker
e01c2950f2 Use floats for remaining time math 2020-11-16 10:54:05 -05:00
Pranav Srinivas Kumar
ccd9c5d99d Closes 63 2020-06-01 08:03:40 -05:00
Pranav Srinivas Kumar
8e39967c1e Removed unused variables 2020-05-25 09:53:56 -05:00
Pranav Srinivas Kumar
0973cde3d3 Using terminal size in block progress bar 2020-05-25 09:29:32 -05:00
Pranav Srinivas Kumar
958228f55d Removed code duplication in prefix/postfix length calculation 2020-05-25 09:25:22 -05:00
Pranav Srinivas Kumar
7c1d7d6367 Added dynamic postfix text sample based on #56 2020-05-25 09:14:23 -05:00
Pranav Srinivas Kumar
4bf1433c21 Updated single include version 2020-05-24 23:12:20 -05:00
Pranav Srinivas Kumar
a2e11d4707 Clang format 2020-05-24 22:56:57 -05:00
Pranav Srinivas Kumar
17e1f47fd4 Added amalgamate to help generate single header for indicators 2020-05-13 15:39:20 -05:00
Pranav Srinivas Kumar
6f057a51a1 Closes #22 2020-05-09 20:33:15 -05:00
Pranav Srinivas Kumar
296bde6088 Minor bug fixes and updates:
* Removed progress bar sample that progresses in reverse direction - This needs a class of its own
* Fixed a casting error in progress_bar class when dealing with max_progress variable
* Minor update to the cursor movement functions in linux
* Updated single include to include these changes
2020-05-08 15:14:52 -05:00
Kevin M. Godby
371bcb2c3b Add a MaxProgress option (default: 100).
The MaxProgress option allows you to set the maximum number of ticks
that are within a progress bar. Each call to tick() increments the tick
count. The progress bar percentage is the number of ticks divided by the
MaxProgress option.

The default MaxProgress is 100, so each tick would be 1%.  If
MaxProgress is set to 500, for example, then each tick would be 0.2%.
2020-04-30 21:37:06 -05:00
Pranav Srinivas Kumar
4aef1470f1 Showing [00:00<00:00] if start time is not saved yet #45 2020-04-15 10:18:28 -05:00
Pranav Srinivas Kumar
16d3484788 Fixed build 2020-04-06 11:25:54 -07:00
Pranav Srinivas Kumar
833e1cd6db Initial commit 2020-04-06 11:10:41 -07:00
Pranav Srinivas Kumar
5e75c285fe First pass implementation of dynamic progress bar 2020-02-21 22:40:16 +05:30
Anonymous Maarten
83da7c3469 Put NOMINMAX just before inclusion of windows.h header 2020-02-21 00:36:03 +01:00
Pranav Srinivas Kumar
89ae8cec39 Clang format 2020-02-13 14:21:01 +05:30
Pranav Srinivas Kumar
2b27d8f516 Minor update 2020-02-13 13:49:51 +05:30
Pranav Srinivas Kumar
a6c55b6936 Updated enums to lowercase per the core guidelines. Bumped to wip v1.7 2020-02-11 17:29:41 +05:30
Pranav Srinivas Kumar
0588904b9d Closes #24 2020-02-11 16:31:31 +05:30
Dawid Pilarski
cfb1593806 fixed multi_block_progress_bar.cpp 2020-02-10 21:51:20 +01:00
Dawid Pilarski
d543453c0c code changes done 2020-02-10 20:54:20 +01:00
hyperxor
0939406db4 Extract progress scale writing code into separate classes 2020-01-21 07:49:47 +03:00
hyperxor
0dec563049 Remove code duplication: move _print_duration to details + small fixes 2020-01-19 21:53:43 +03:00
hyperxor
a91d3b6ff7 Remove code duplication: extract set_stream_color function 2020-01-19 16:20:01 +03:00
hyperxor
b1f01d5e52 Small improvement: using lock_guard instead of unique_lock 2020-01-19 13:36:10 +03:00
Pranav Srinivas Kumar
e697a43fec Clang format 2019-12-18 12:47:10 -06:00
Pranav Srinivas Kumar
2694badc93 Added locking to .current() 2019-12-18 07:55:22 -06:00
Pranav Srinivas Kumar
8e41f2712e Added sample showing MultiProgress with BlockProgressBar 2019-12-17 20:21:33 -06:00
Pranav Srinivas Kumar
92725d6cb2 Draft implementation of MultiProgress for progress bars 2019-12-17 20:06:50 -06:00
Pranav
936043b7d4 Update block_progress_bar.hpp 2019-12-17 15:24:05 -06:00
Pranav
2241c00bb6 Update block_progress_bar.hpp 2019-12-17 15:23:26 -06:00
Pranav Srinivas Kumar
aa5dffa4e2 Time elapsed/remaining is hidden by default 2019-12-17 09:43:53 -06:00
Pranav Srinivas Kumar
6224a46371 Updated samples/demos to show usage of hide/show time elapsed/remaining 2019-12-17 09:31:43 -06:00
Pranav Srinivas Kumar
5360fec641 Added time elapsed/remaining meter for block progress bar 2019-12-17 09:13:48 -06:00
Pranav Srinivas Kumar
97c89284a9 Clang format 2019-12-17 09:06:36 -06:00
Pranav Srinivas Kumar
55f9eb7c67 Updated smooth block progress bar update logic 2019-12-16 09:07:57 -06:00
Pranav Srinivas Kumar
a516957135 Draft implementation of smooth block progress bar 2019-12-16 08:48:42 -06:00