Files
o3de/Code/Tools/TestImpactFramework/Frontend/Console/Code/Source/TestImpactConsoleUtils.h
T
Steve Pham 38261d0800 Shorten copyright headers by splitting into 2 lines (#2213)
* Updated all copyright headers to split the longer original copyright line into 2 shorter lines

Signed-off-by: Steve Pham <spham@amazon.com>
2021-07-16 15:25:48 -07:00

53 lines
1.4 KiB
C++

/*
* Copyright (c) Contributors to the Open 3D Engine Project.
* For complete copyright and license terms please see the LICENSE at the root of this distribution.
*
* SPDX-License-Identifier: Apache-2.0 OR MIT
*
*/
#pragma once
#include <AzCore/std/string/string.h>
namespace TestImpact
{
namespace Console
{
//! The set of available foreground colors.
enum class Foreground
{
Black = 30,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White
};
//! The set of available background colors.
enum class Background
{
Black = 40,
Red,
Green,
Yellow,
Blue,
Magenta,
Cyan,
White
};
//! Returns a string to be used to set the specified foreground and background color.
AZStd::string SetColor(Foreground foreground, Background background);
//! Returns a string with the specified string set to the specified foreground and background color followed by a color reset.
AZStd::string SetColorForString(Foreground foreground, Background background, const AZStd::string& str);
//! Returns a string to be used to reset the color back to white foreground on black background.
AZStd::string ResetColor();
} // namespace Console
} // namespace TestImpact