screen_snapshot_json: Serialize a screen snapshot as JSON

View source: R/export.R

screen_snapshot_jsonR Documentation

Serialize a screen snapshot as JSON

Description

The JSON form of screen_snapshot(). Requires the optional jsonlite package.

Usage

screen_snapshot_json(x, width = 80, height = 24, pretty = TRUE)

Arguments

x

A widget, Screen, App, or ScreenBuffer.

width, height

Frame size in cells.

pretty

Format the JSON for readability?

Value

A JSON string.


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