kaycxx-term
C++ terminal library
Loading...
Searching...
No Matches
indexed_color.hpp
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 Klaus Reimer <k@ailis.de>
2// SPDX-License-Identifier: MIT
3
4#pragma once
5
11#include <cstdint>
12
13namespace kaycxx::term {
14
20 std::uint8_t index;
21};
22
29inline constexpr indexed_color indexed(std::uint8_t index) noexcept {
30 return {index};
31}
32
33} // namespace kaycxx::term
constexpr indexed_color indexed(std::uint8_t index) noexcept
Creates an indexed terminal color.
Definition indexed_color.hpp:29
Indexed terminal palette color.
Definition indexed_color.hpp:18
std::uint8_t index
256-color palette index.
Definition indexed_color.hpp:20