ttx 0.1.0
Loading...
Searching...
No Matches
ttx::terminal::SavedCursor Struct Reference

Represents the saved cursor state, which is used for save/restore cursor operations. More...

#include <ttx/terminal/screen.h>

Public Member Functions

auto operator== (SavedCursor const &) const -> bool=default
 
auto operator<=> (SavedCursor const &) const =default
 

Public Attributes

u32 row { 0 }
 Row (y coordinate)
 
u32 col { 0 }
 Column (x coordinate)
 
bool overflow_pending { false }
 Signals that the previous text outputted reached the end of a row.
 
GraphicsRendition graphics_rendition {}
 Active graphics rendition.
 
OriginMode origin_mode { OriginMode::Disabled }
 Origin mode.
 

Friends

constexpr friend auto tag_invoke (di::Tag< di::reflect >, di::InPlaceType< SavedCursor >)
 

Detailed Description

Represents the saved cursor state, which is used for save/restore cursor operations.

The attributes which are saved and restored are defined in the manual for the DECSC escape sequence.

Member Function Documentation

◆ operator<=>()

auto ttx::terminal::SavedCursor::operator<=> ( SavedCursor const & ) const
default

◆ operator==()

auto ttx::terminal::SavedCursor::operator== ( SavedCursor const & ) const -> bool=default
default

Friends And Related Symbol Documentation

◆ tag_invoke

friend auto tag_invoke ( di::Tag< di::reflect > ,
di::InPlaceType< SavedCursor >  )
friend

Member Data Documentation

◆ col

u32 ttx::terminal::SavedCursor::col { 0 }

Column (x coordinate)

◆ graphics_rendition

GraphicsRendition ttx::terminal::SavedCursor::graphics_rendition {}

Active graphics rendition.

◆ origin_mode

OriginMode ttx::terminal::SavedCursor::origin_mode { OriginMode::Disabled }

Origin mode.

◆ overflow_pending

bool ttx::terminal::SavedCursor::overflow_pending { false }

Signals that the previous text outputted reached the end of a row.

◆ row

u32 ttx::terminal::SavedCursor::row { 0 }

Row (y coordinate)


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