nxt/tui_terminal.hpp file

Namespaces

namespace nxt
namespace nxt::tui
namespace nxt::tui::detail

Classes

struct nxt::tui::detail::NoResize
template <typename ResizeFn = detail::NoResize>
struct nxt::tui::VTermScreen

Functions

void append_utf8(std::string& out, std::uint32_t cp)
auto cell_text(const nxt::vterm::Cell& cell) →  std::string
auto color_from_vterm(const nxt::vterm::Color& color) →  Rgba8
auto cursor_color_or(Rgba8 color, Rgba8 fallback) →  Rgba8
auto emphasis_from_cell(const nxt::vterm::Cell& cell) →  Emphasis
void render_cursor(RasterView& raster, Size size, const nxt::vterm::Cursor& cursor, Style clear_style)
void render_vterm_screen(RasterView& raster, Size size, nxt::vterm::Terminal& terminal, Style clear_style = {})
Clear a raster and render a libvterm screen into it.
auto vterm_screen(nxt::vterm::Terminal& terminal) →  auto
Build a growable terminal layout without a resize hook.
auto vterm_screen(nxt::vterm::Terminal& terminal, Style clear_style) →  auto
Build a growable terminal layout with a custom clear style.
template <typename ResizeFn>
auto vterm_screen(nxt::vterm::Terminal& terminal, ResizeFn&& resize) →  auto
Build a growable terminal layout with a resize hook.
template <typename ResizeFn>
auto vterm_screen(nxt::vterm::Terminal& terminal, ResizeFn&& resize, Style clear_style) →  auto
Build a growable terminal layout with a resize hook and clear style.