#include <nxt/tui_terminal.hpp>
template <typename ResizeFn = detail:: NoResize>
VTermScreen struct
Layout adapter that renders a nxt::.
ResizeFn, when supplied, is called with the raster size before rendering so PTY-backed terminals can stay in sync with their pane.
Public functions
- auto height_hint() const → HeightHint constexpr
- Terminal screens grow to fill available height.
- void render(RasterView& raster, Size size) const
- Resize, clear, and render the terminal into
raster. - auto width_hint() const → WidthHint constexpr
- Terminal screens grow to fill available width.
Public variables
-
nxt::
vterm:: Terminal* terminal - Terminal to render; null renders nothing.
- ResizeFn resize
- Optional resize hook run before drawing.
- Style clear_style
- Style used to clear the pane before terminal cells are drawn.