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

Defines indexed 256-color terminal colors. More...

#include <cstdint>
Include dependency graph for indexed_color.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  kaycxx::term::indexed_color
 Indexed terminal palette color. More...
 

Functions

constexpr indexed_color kaycxx::term::indexed (std::uint8_t index) noexcept
 Creates an indexed terminal color.
 

Detailed Description

Defines indexed 256-color terminal colors.

Function Documentation

◆ indexed()

constexpr indexed_color kaycxx::term::indexed ( std::uint8_t  index)
inlineconstexprnoexcept

Creates an indexed terminal color.

Parameters
index256-color palette index.
Returns
Indexed terminal color.