libfly  6.2.2
C++20 utility library for Linux, macOS, and Windows
fly::logger::Cursor Struct Reference

#include <styler.hpp>

Public Types

enum  Direction { Up , Down , Forward , Backward }
 

Public Member Functions

constexpr Cursor (Direction direction, std::uint8_t distance=1) noexcept
 

Public Attributes

const Direction m_direction
 
const std::uint8_t m_distance
 

Detailed Description

Struct to modify the cursor position within a std::ostream.

Member Enumeration Documentation

◆ Direction

Constants for the direction that the cursor should move.

Constructor & Destructor Documentation

◆ Cursor()

constexpr fly::logger::Cursor::Cursor ( Direction  direction,
std::uint8_t  distance = 1 
)
inlineconstexprnoexcept

Construct a Cursor instance with a direction and distance.

Parameters
directionThe direction to move the cursor.
distanceThe distance to move the cursor.

The documentation for this struct was generated from the following file: