Aengus.Jiang
0cce8d7326
fix the bug of has_include error with g++4.8.5
2023-01-12 17:34:05 +08:00
Dragon
9f3b0247f5
Fix Windows support for DynamicProgress
2021-10-28 23:47:55 +03:00
Chuvi
28a81289a6
Fix #define min/max problem from Windows.h
2021-07-12 09:56:08 +03:00
Pranav Srinivas Kumar
e34840ab0d
Closes #93 - Defined _SILENCE_CXX17_CODECVT_HEADER_DEPRECATION_WARNING to remove codecvt warning
2021-05-03 17:34:59 -05:00
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
c338b5b280
Updated termcolor to v2.0. Bumped indicators to v2.1, closes #94
2021-05-02 23:17:24 -05:00
turuslan
96a2053d5b
initialize local variable
2021-03-18 12:23:58 +03:00
Pranav Srinivas Kumar
4790bfddca
Added carriage return before prefix text
2021-03-13 10:48:45 -06:00
usama makhzoum
0cb5e11636
Fix some source file permissions
2021-02-17 21:43:01 +03:00
Pranav Srinivas Kumar
b85eadb47c
Closes #80
2020-12-08 09:15:05 -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
Seth Parker
c3ff1fbd91
Mitigate overflow when calculating eta
2020-11-12 13:21:42 -05:00
Pranav Srinivas Kumar
77d910d0cf
Fixed percentage calculation for progress spinner for user-defined option::MaxProgress
2020-10-26 07:56:44 -05:00
j.noronha
05955650d6
Terminate def in termcolor
2020-09-16 21:16:45 +12:00
Pranav Srinivas Kumar
3d48e2bd25
Closes #72
2020-09-15 08:54:21 -05:00
duncanmcn
430a73b7b6
Change include guard to win32
2020-07-22 14:53:47 +12:00
Pranav Srinivas Kumar
f87de6ccbd
Fixed missing include for termcolor in dynamic progress and multi progress
2020-07-21 10:20:07 -05:00
Pranav Srinivas Kumar
04fddb9014
Removed redundant includes of termcolor.hpp and updated single include. Closes #68
2020-07-21 10:14:52 -05:00
Pranav
755900d524
Update terminal_size.hpp
...
Closes #67
2020-07-05 13:31:45 -05:00
Pranav
d9a5219d09
Merge pull request #66 from godbyk/bugfix/nested-namespace
...
Elevate #includes from being nested in the namespace.
2020-06-17 08:35:52 -05:00
Kevin M. Godby
74c36cbb93
Support older compilers with missing <codecvt> header.
2020-06-16 13:29:02 -05:00
Kevin M. Godby
3cef73d30d
Elevate #includes from being nested in the namespace.
2020-06-16 13:23:45 -05:00
Pranav Srinivas Kumar
ccd9c5d99d
Closes 63
2020-06-01 08:03:40 -05:00
Pranav Srinivas Kumar
a776a52c98
Using \033 instead of \e for ISO-standards compliance #62
2020-05-25 13:06:08 -05:00
Pranav Srinivas Kumar
8e39967c1e
Removed unused variables
2020-05-25 09:53:56 -05:00
Pranav Srinivas Kumar
6be9c8005f
Added terminal size checks in indeterminate progress bar
2020-05-25 09:35:29 -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
63bb0d8946
Progress bar now uses terminal size to figure out how many spaces to use to fill up the remainder of the terminal row
2020-05-25 08:51:34 -05:00
Pranav
664278a432
Merge pull request #60 from data-man/termcolor_latest
...
Update termcolor to latest
2020-05-25 08:22:14 -05:00
data-man
5660eee6d9
Update termcolor to latest
2020-05-25 09:13:01 +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
885748d4c2
Reverted minor changes to stream helper w.r.t checking if fill, lead and remainder are empty
2020-05-24 22:47:18 -05:00
Pranav Srinivas Kumar
d0562438d5
Added ProgressType enum and updated single include
2020-05-24 22:43:53 -05:00
Pranav Srinivas Kumar
120f922326
Added progress_type option to indicate incremental/decremental progress
2020-05-24 22:37:58 -05:00
Pranav Srinivas Kumar
16eb028686
Improved support for unicode including indeterminate progress bar. Updated unicode sample
2020-05-23 17:15:18 -05:00
Pranav Srinivas Kumar
cf1f888a0f
Better support for displaying unicode characters in the progress bar, while respecting bar_width
2020-05-23 17:00:13 -05:00
Pranav Srinivas Kumar
27f4ad1f59
Made cursor control/movement functions static inline #58
2020-05-23 12:40:17 -05:00
Dawid Pilarski
b66930b173
[issue-54] added missing header
2020-05-23 01:22:49 +02:00
Pranav Srinivas Kumar
17e1f47fd4
Added amalgamate to help generate single header for indicators
2020-05-13 15:39:20 -05:00
Pranav
26c4c0286e
Merge pull request #52 from p-ranav/feature/43
...
Closes #22
2020-05-09 20:36:09 -05:00
Pranav Srinivas Kumar
6f057a51a1
Closes #22
2020-05-09 20:33:15 -05:00
Pranav Srinivas Kumar
b215cb850e
Added functions to retrieve terminal width
2020-05-08 18:09:08 -05:00
Pranav Srinivas Kumar
6d73795218
Implemented indeterminate progress bar w/ sample
2020-05-08 17:13:28 -05:00
Pranav Srinivas Kumar
6857345da5
Initial commit
2020-05-08 16:30:47 -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