xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.core
include
xtd
reset_color.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
console.hpp
"
6
#include "
object.hpp
"
7
9
namespace
xtd
{
20
class
reset_color
final :
public
object
{
21
public
:
23
29
reset_color
() =
default
;
31
33
friend
auto
operator <<(std::ostream& os,
const
reset_color
&) -> std::ostream& {
34
if
(!
console::is_output_redirected
() && os.rdbuf() ==
console::out
.rdbuf())
35
console::reset_color
();
36
return
os;
37
}
39
};
40
}
xtd::console::out
static std::ostream out
Gets the standard output stream. A std::basic_ostream<char_t> that represents the standard output str...
Definition
console.hpp:52
xtd::console::is_output_redirected
static auto is_output_redirected() -> bool
Gets a value that indicates whether the output stream has been redirected from the standard output st...
xtd::console::reset_color
static auto reset_color() -> bool
Sets the foreground and background console colors to their defaults.
xtd::object::object
object()=default
Create a new instance of the ultimate base class object.
xtd::reset_color::reset_color
reset_color()=default
Initialize a new insttance of xtd::reset_coloor class.
console.hpp
Contains xtd::console class.
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
object.hpp
Contains xtd::object class.
Generated on
for xtd by
Gammasoft
. All rights reserved.