diff options
author | Vasily Gerasimov <UgnineSirdis@gmail.com> | 2022-02-10 16:49:09 +0300 |
---|---|---|
committer | Daniil Cherednik <dcherednik@yandex-team.ru> | 2022-02-10 16:49:09 +0300 |
commit | 6cdc8f140213c595e4ad38bc3d97fcef1146b8c3 (patch) | |
tree | f69637041e6fed76ebae0c74ae1fa0c4be6ab5b4 /library/cpp/colorizer/colors.h | |
parent | e5d4696304c6689379ac7ce334512404d4b7836c (diff) | |
download | ydb-6cdc8f140213c595e4ad38bc3d97fcef1146b8c3.tar.gz |
Restoring authorship annotation for Vasily Gerasimov <UgnineSirdis@gmail.com>. Commit 1 of 2.
Diffstat (limited to 'library/cpp/colorizer/colors.h')
-rw-r--r-- | library/cpp/colorizer/colors.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/library/cpp/colorizer/colors.h b/library/cpp/colorizer/colors.h index 474a918994..c40570c9bc 100644 --- a/library/cpp/colorizer/colors.h +++ b/library/cpp/colorizer/colors.h @@ -1,6 +1,6 @@ #pragma once -#include "fwd.h" +#include "fwd.h" #include <util/generic/string.h> #include <util/generic/strbuf.h> @@ -104,8 +104,8 @@ namespace NColorizer { static bool CalcIsTTY(FILE* file); public: - explicit TColors(FILE* = stderr); - explicit TColors(bool ontty); + explicit TColors(FILE* = stderr); + explicit TColors(bool ontty); TStringBuf Reset() const noexcept; @@ -213,9 +213,9 @@ namespace NColorizer { }; /// Singletone `TColors` instances for stderr/stdout. - TColors& StdErr(); - TColors& StdOut(); - + TColors& StdErr(); + TColors& StdOut(); + /// Choose `TColors` depending on output stream. If passed stream is stderr/stdout, return a corresponding /// singletone. Otherwise, return a disabled singletone (which you can, but should *not* enable). TColors& AutoColors(IOutputStream& os); |