赵诗涵
824ca21bbf
Merge branch 'p-ranav:master' into master
2025-05-08 03:34:27 +08:00
Pranav
a6de479a9c
Merge pull request #143 from BrandenXia/patch-1
...
Update some examples, add percentage to ensure actual behavior match displayed in gif
2025-05-07 07:07:47 -04:00
Pranav
cef20c7c4b
Merge pull request #147 from rlalik/fix_float_lsb_precision
...
Fix lsb error for ticks with huge max_progress values.
2025-05-07 07:07:18 -04:00
Rafał Lalik
08bf7ec793
Fix progress variable type in sample code
2025-05-02 21:27:24 +02:00
Rafał Lalik
fbdac646ee
Fix lsb error for ticks with huge max_progress values.
...
When the max_progress value is >1.67772e+07, the progress_ which is
float, is not chanegd when tick() is called as +1 is outside of the
precission for a float value. The bar stays at value of 1.67772e+07
and 67%.
In this fix I introduced tics_ varialbe of size_t which is increased
with every tick. And the progress_ is calcualted as a ratio of
tick_/max_progress.
The breaking and required change is the change of set_progress(float)
to set_progress(size_t), so it modifies directly the tics_ value.
2025-05-01 00:02:37 +02:00
BrandenXia
e0349eb806
Update examples, add percentage to match actual behavior
2025-02-19 08:45:39 -08:00
Pranav
ac6c93ea2b
Merge pull request #142 from CodingRookie98/master
...
Fix Localization Information Restoration Issue: Change setlocale(LC_ALL, "") to setlocale(LC_ALL, NULL)
2025-01-25 09:55:59 -05:00
CodingRookie98
c793684c9c
Fix the issue where the localization information is set before the program calls the 'utf8_decode' function in the project code. After calling the 'utf8_decode' function, the restored localization information is the default setting from the user environment variables, rather than the current program's localization information. Therefore, the 'setlocale(LC_ALL, "")' call should be changed to 'setlocale(LC_ALL, NULL)' to align with the code logic.
2025-01-25 14:56:42 +08:00
zhaoshihan
0c4ec7d773
Add CMake options INDICATORS_INSTALL and INDICATORS_PACKAGE
2025-01-08 23:55:37 +08:00
Pranav
9c855c95e7
Merge pull request #136 from Kicer86/progressbars_ownership
...
Make DynamicProgress take ownership over progress bars
2024-08-05 09:08:01 -04:00
Michał Walenciak
7962c540a8
Update code
2024-08-03 14:01:09 +02:00
Michał Walenciak
cefe02f449
Synchronize comments with README
2024-08-03 14:00:57 +02:00
Michał Walenciak
05ba667474
Adapt samples
2024-08-03 13:57:27 +02:00
Michał Walenciak
13bdb4b396
Add missing include
2024-08-03 13:57:20 +02:00
Michał Walenciak
cb8f728c68
Make DynamicProgress take ownership over progress bars
2024-07-29 17:35:52 +02:00
Pranav
222382c3a6
Merge pull request #129 from zhangxianbing/master
...
Fix setlocale usage in utf8_decode function
2023-11-21 05:38:11 -06:00
zhangxianbing
68d059d6d2
Fix setlocale usage in utf8_decode function
2023-11-21 11:02:13 +08:00
Pranav
ef71abd9bc
Merge pull request #124 from tocic/fix/undeclared_uint8_t
...
Add missing <cstdint> header
2023-05-07 05:51:51 -05:00
tocic
525ce444f4
Add missing <cstdint> header
...
Fixes the "‘uint8_t’ has not been declared" error with gcc 13.1.1.
2023-05-07 12:36:15 +03:00
Pranav
4ea716116d
Merge pull request #121 from danielBreitlauch/master
...
Bug fix: check prefix and postfix length errors
2023-04-17 07:55:32 -05:00
Daniel Breitlauch
6549b77d0b
remove signed to unsigned conversion + check for errors
2023-04-04 12:32:37 +02:00
Pranav
5050a88877
Merge pull request #120 from avighnac/master
...
Fix 'block progress bar' README.md example not working
2023-03-10 17:19:26 -06:00
Avighna
d6e70912bb
Merge pull request #1 from avighnac/avighnac-patch-1
...
Update README.md
2023-03-10 23:11:40 +05:30
Avighna
bd4826c885
Update README.md
...
Fixed the 'block progress bar' example not working due to a missing `#include` directive.
2023-03-10 23:10:05 +05:30
Pranav
b44735a2a5
Update README.md
2023-02-15 11:16:18 -06:00
Pranav Srinivas Kumar
26d39ad8fb
Bumped to version v2.3
v2.3
2023-02-15 07:17:27 -08:00
Pranav Srinivas Kumar
bfe95fee17
Updated single_include to support mbstowcs_s Windows impl
2023-02-15 07:11:53 -08:00
Pranav
11c60675d5
Merge pull request #119 from jsttzsf/bugfix/mbstowcs_deprecation
...
Replaced mbstowcs with mbstowcs_s
2023-02-15 09:09:54 -06:00
Julian Schiedel
98f6e50af9
Added preprocesser fork to account for missing mbstowcs_s on linux
2023-02-15 15:48:37 +01:00
Julian Schiedel
dcfaebf9d9
Replaced mbstowcs with mbstowcs_s to fix fix compiler warning about deprecation
2023-02-15 10:36:38 +01:00
Pranav
f03feacc0b
Merge pull request #118 from p-ranav/bugfix/codecvt
...
Removed deprecated codecvt
2023-02-14 10:10:32 -06:00
Pranav Srinivas Kumar
15c180b113
Removed unused vector header
2023-02-14 08:09:46 -08:00
Pranav Srinivas Kumar
80b822c576
Removed deprecated codecvt
2023-02-14 08:07:50 -08:00
Pranav
f38bf229eb
Merge pull request #115 from aengusjiang/master
...
fix the bug of has_include error with g++4.8.5
2023-01-12 07:56:57 -06:00
Aengus.Jiang
0cce8d7326
fix the bug of has_include error with g++4.8.5
2023-01-12 17:34:05 +08:00
Pranav
a5bc05f32a
Merge pull request #103 from SheepGoMeh/master
...
Fix Windows support for DynamicProgress
2021-10-28 18:43:20 -05:00
Dragon
40b99f6b04
Generate single header
2021-10-28 23:55:59 +03:00
Dragon
9f3b0247f5
Fix Windows support for DynamicProgress
2021-10-28 23:47:55 +03:00
Pranav
cdcff01339
Merge pull request #101 from Chuvi-w/Fix_Windows_h_min_max
...
Fix #define min/max problem from Windows.h
2021-07-12 10:17:20 -05: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
6432875ef4
Bumped to v2.2
v2.2
2021-05-03 09:38:25 -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
v2.1
2021-05-02 23:17:24 -05:00
Pranav
91ceb5c7cf
Merge pull request #92 from turuslan/fix/terminal_size
...
Uninitialized local variable in terminal_size
2021-03-18 08:36:30 -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
Pranav
23b2364f2a
Merge pull request #88 from usama-makhzoum/master
...
Fix some source file permissions
2021-02-18 07:28:53 -06:00
usama makhzoum
0cb5e11636
Fix some source file permissions
2021-02-17 21:43:01 +03:00
Pranav Srinivas Kumar
eb04b594dc
Bumped version
2021-01-07 06:47:43 -08:00