1
0
forked from Alepha/Alepha

Update and consolidate the console and colors code.

This introduces a subset of SGR-Name syntax.
This commit is contained in:
2023-10-20 23:48:00 -04:00
parent 69aa923450
commit 1bb0c56224
7 changed files with 290 additions and 112 deletions

17
Testing/colors.h Normal file
View File

@ -0,0 +1,17 @@
static_assert( __cplusplus > 2020'00 );
#pragma once
#include <Alepha/Console.h>
namespace Alepha::Hydrogen::Testing ::detail:: testing_colors
{
namespace C
{
inline namespace Colors
{
inline const auto testFail= createStyle( "test-failure", setFgColor( BasicTextColor::red ) );
inline const auto testPass= createStyle( "test-success", setFgColor( BasicTextColor::green ) );
}
}
}