We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6b9ed75 commit 04b0f81Copy full SHA for 04b0f81
color.hpp
@@ -0,0 +1,26 @@
1
+
2
+// algocpp/io/color.hpp
3
+//
4
+// This file is part of algocpp and is copyrighted by algocpp.
5
+// If used, it must comply with the MIT License.
6
7
+#ifndef ALGOCPP_IO_COLOR
8
+#define ALGOCPP_IO_COLOR
9
10
+#include <process.h>
11
12
+namespace algocpp
13
+{
14
+ namespace io
15
+ {
16
+ bool color = false;
17
18
+ inline void enable_color() noexcept
19
20
+ system("");
21
+ color = true;
22
+ }
23
24
+}
25
26
+#endif // ALGOCPP_IO_COLOR
0 commit comments