|
GlitchyByte Lib
0.3.1
GlitchyByte general library to bootstrap development.
|
Typedefs | |
| typedef uint32_t | color_t |
Functions | |
| static constexpr color_t | rgb (color_t const r, color_t const g, color_t const b) noexcept |
| static constexpr color_t | grey (color_t const step) noexcept |
| static constexpr std::string | colorText (std::string_view const str, color_t const color) noexcept |
| static constexpr std::string | clearToEndOfLine () noexcept |
| static constexpr std::string | clearToStartOfLine () noexcept |
| static constexpr std::string | cursorUp (uint const n=1) noexcept |
| static constexpr std::string | cursorDown (uint const n=1) noexcept |
| static constexpr std::string | cursorForward (uint const n=1) noexcept |
| static constexpr std::string | cursorBack (uint const n=1) noexcept |
| typedef uint32_t gb::terminal::color_t |
|
inlinestaticconstexprnoexcept |
Converts rgb values into a single color code.
| r | Red value between [0, 6). |
| g | Green value between [0, 6). |
| b | Blue value between [0, 6). |
Converts a grey step into a color code.
| step | Grey step between [0, 24). |
|
inlinestaticconstexprnoexcept |
Returns a string that represents the given string in the given color.
| str | String to apply color. |
| color | Color. |
|
inlinestaticconstexprnoexcept |
Returns a string that clears to end of line.
|
inlinestaticconstexprnoexcept |
Returns a string that clears to start of line.
|
inlinestaticconstexprnoexcept |
Returns a string that moves the cursor up.
| n | Number of times to move cursor. |
|
inlinestaticconstexprnoexcept |
Returns a string that moves the cursor down.
| n | Number of times to move cursor. |
|
inlinestaticconstexprnoexcept |
Returns a string that moves the cursor forward.
| n | Number of times to move cursor. |
|
inlinestaticconstexprnoexcept |
Returns a string that moves the cursor back.
| n | Number of times to move cursor. |