nxt/vterm.hpp file

Small C++ wrapper for libvterm.

The wrapper owns a VTerm screen model, accepts raw PTY bytes, exposes decoded cells for rendering, and can encode keyboard input back into bytes for the child side of a PTY.

Namespaces

namespace nxt
namespace nxt::vterm

Classes

struct nxt::vterm::Color
Terminal color as reported by libvterm.
struct nxt::vterm::Cell
One terminal screen cell decoded from libvterm.
struct nxt::vterm::Cursor
Current cursor position and presentation state.
class nxt::vterm::Terminal
Owning libvterm terminal screen model.
struct nxt::vterm::Terminal::ScreenSnapshot
Dense copy of the current screen cells.

Enums

enum class CursorShape { block, underline, bar_left }
Cursor shape requested by the terminal application.