xtd.console - Reference Guide  0.0.1
Modern c++17 library to manage terminal on Windows, macOS and Linux.
reset_color.hpp
Go to the documentation of this file.
1 #pragma once
4 #include "basic_console.hpp"
5 
7 namespace xtd {
10  class reset_color final {
11  public:
12  reset_color() = default;
13 
15  template<typename Char>
16  friend std::basic_ostream<Char>& operator <<(std::basic_ostream<Char>& os, const reset_color&) {
17  if (os.rdbuf() == __get_out_rdbuf<Char>() || os.rdbuf() == __get_err_rdbuf<Char>())
19  return os;
20  }
22  };
23 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: background_color.hpp:7
Represent reset color output manipulator class.
Definition: reset_color.hpp:10
Contains xtd::basic_console class.
Represents the standard input, output, and error streams for console applications.
Definition: basic_console.hpp:21