kaycxx-term
C++ terminal library
Loading...
Searching...
No Matches
Classes | Functions
color_style.hpp File Reference

Defines foreground and background color styling helpers. More...

#include <kaycxx/term/color.hpp>
Include dependency graph for color_style.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaycxx::term::color_style
 Color style command written to a terminal. More...
 

Functions

constexpr color_style kaycxx::term::fg (color value) noexcept
 Creates a foreground color style.
 
constexpr color_style kaycxx::term::bg (color value) noexcept
 Creates a background color style.
 

Detailed Description

Defines foreground and background color styling helpers.

Function Documentation

◆ bg()

constexpr color_style kaycxx::term::bg ( color  value)
inlineconstexprnoexcept

Creates a background color style.

Parameters
valueColor value to use as background.
Returns
Background color style.

◆ fg()

constexpr color_style kaycxx::term::fg ( color  value)
inlineconstexprnoexcept

Creates a foreground color style.

Parameters
valueColor value to use as foreground.
Returns
Foreground color style.