BitShift Validate 0.1.0
BitShift Validate API Reference Documentation
Loading...
Searching...
No Matches
bitshift::validate::ansi Class Reference

#include <bitshift/validate/ansi.hxx>

Classes

struct  reset_t

Public Types

enum  color : uint8_t
enum  style : uint8_t

Public Member Functions

 ansi ()
 ansi (color, style=kNormal)
color get_color () const
style get_style () const

Static Public Attributes

static constexpr reset_t const reset {}

Detailed Description

Terminal ANSI-styles class.

Member Enumeration Documentation

◆ color

Terminal color enumeration.

◆ style

Terminal style enumeration.

Constructor & Destructor Documentation

◆ ansi() [1/2]

bitshift::validate::ansi::ansi ( )

Constructor.

◆ ansi() [2/2]

bitshift::validate::ansi::ansi ( color color,
style style = kNormal )

Constructor.

Member Function Documentation

◆ get_color()

ansi::color bitshift::validate::ansi::get_color ( ) const

Get color.

◆ get_style()

ansi::style bitshift::validate::ansi::get_style ( ) const

Get style.

Member Data Documentation

◆ reset

reset_t const bitshift::validate::ansi::reset {}
staticconstexpr

Tag for reset.