forked from Alepha/Alepha
AutoRAII based stream adaptors.
This commit is contained in:
@ -244,11 +244,7 @@ namespace Alepha::Hydrogen ::detail:: Console_m
|
||||
--"dump-color-env-var"_option << []
|
||||
{
|
||||
std::cout << "export " << colorsEnv() << "-\"";
|
||||
AutoRAII delimiters
|
||||
{
|
||||
[]{ std::cout << StartDelimitedList{ ":" }; },
|
||||
[]{ std::cout << EndDelimitedList; }
|
||||
};
|
||||
auto scopedList= adaptStream( StartDelimitedList{ ":" }, std::cout );
|
||||
for( const auto &[ name, sgr ]: colorVariables() )
|
||||
{
|
||||
std::cout << NextItem << name.name << "=" << sgr.code;
|
||||
|
Reference in New Issue
Block a user