libfly
6.2.2
C++20 utility library for Linux, macOS, and Windows
|
#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 |
Struct to modify the cursor position within a std::ostream.
Constants for the direction that the cursor should move.
|
inlineconstexprnoexcept |
Construct a Cursor instance with a direction and distance.
direction | The direction to move the cursor. |
distance | The distance to move the cursor. |