render_svg: Render a static frame as SVG

View source: R/export.R

render_svgR Documentation

Render a static frame as SVG

Description

Render a static frame as SVG

Usage

render_svg(
  x,
  width = 80,
  height = 24,
  cell_width = 9,
  line_height = 18,
  font_family = "monospace",
  color = TRUE
)

Arguments

x

A widget, Screen, App, or ScreenBuffer.

width, height

Frame size in cells.

cell_width

Width of a terminal cell in SVG user units.

line_height

Height of a row in SVG user units.

font_family

CSS font family.

color

Include framebuffer colours?

Value

An SVG document string.


termr documentation built on Oct. 21, 2026, 5:13 p.m.