You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 16, 2022. It is now read-only.
Copy file name to clipboardExpand all lines: Readme.md
+25-1Lines changed: 25 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,32 @@
4
4
5
5
# console loadingbar
6
6
7
+
## USAGE
7
8
8
-
### Other Versions
9
+
To include the Lib, you need to `add_subdirectory("consoleLoadingbar")` in your `CMakeLists.txt` if you download this repo into `%yourProject%/consoleLoadingbar`.
10
+
11
+
You need to link `sharks::consoleLoadingBar` in your project
12
+
13
+
Include the loading bar header at the top of the C++ file where you like to use it (`#include <consoleLoadingBar.h>`)
14
+
15
+
Create a object of class (Example: `CloadingBarConsole bar`)
16
+
17
+
Now you can set the value of Percent: `bar.setPercent(30);`
18
+
19
+
You can also change the color of your bar with following colorcodes:
20
+
21
+
COLORCODE | Color | EXAMPLE
22
+
--------------------- | ------ | ---------
23
+
`colorcode::OK` | Green | `bar.setColorCode(colorcode::OK);` or `bar.setColorCode();`
0 commit comments