Skip to content

Commit 04b0f81

Browse files
committed
color
1 parent 6b9ed75 commit 04b0f81

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

color.hpp

+26
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)