mirror of
https://github.com/monero-project/monero.git
synced 2025-06-24 18:40:30 -04:00
added windows_stream.* console colors
This commit is contained in:
parent
c511abf005
commit
f9dba47a17
2 changed files with 84 additions and 0 deletions
20
contrib/otshell_utils/windows_stream.h
Normal file
20
contrib/otshell_utils/windows_stream.h
Normal file
|
@ -0,0 +1,20 @@
|
|||
#ifndef WINDOWS_STREAM_H
|
||||
#define WINDOWS_STREAM_H
|
||||
|
||||
#if defined(_WIN32)
|
||||
|
||||
#include <string>
|
||||
#include <iostream>
|
||||
|
||||
class windows_stream
|
||||
{
|
||||
public:
|
||||
windows_stream(unsigned int pLevel);
|
||||
friend std::ostream& operator<<(std::ostream &stream, windows_stream const& object);
|
||||
private:
|
||||
unsigned int mLevel = 0;
|
||||
};
|
||||
|
||||
#endif // _WIN32
|
||||
|
||||
#endif // WINDOWS_STREAM_H
|
Loading…
Add table
Add a link
Reference in a new issue