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

Represents text annotated using the text sizing protocol. More...

#include <ttx/terminal/escapes/osc_66.h>

Public Member Functions

auto serialize () const -> di::String
 
auto operator== (OSC66 const &other) const -> bool=default
 

Static Public Member Functions

static auto parse (di::StringView data) -> di::Optional< OSC66 >
 

Public Attributes

MultiCellInfo info
 Metadata associated with the text.
 
di::StringView text
 Described text. Notice this is a reference and so does not own the underlying data.
 

Static Public Attributes

static constexpr auto max_text_size = usize(4096)
 

Friends

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

Detailed Description

Represents text annotated using the text sizing protocol.

This is a protocol invented kitty, specified here.

Member Function Documentation

◆ operator==()

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

◆ parse()

auto ttx::terminal::OSC66::parse ( di::StringView data) -> di::Optional<OSC66>
static

◆ serialize()

auto ttx::terminal::OSC66::serialize ( ) const -> di::String

Friends And Related Symbol Documentation

◆ tag_invoke

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

Member Data Documentation

◆ info

MultiCellInfo ttx::terminal::OSC66::info

Metadata associated with the text.

◆ max_text_size

auto ttx::terminal::OSC66::max_text_size = usize(4096)
staticconstexpr

◆ text

di::StringView ttx::terminal::OSC66::text

Described text. Notice this is a reference and so does not own the underlying data.


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