Skip to main content

Crate terminal_control

Crate terminal_control 

Source
Expand description

Control, model, render, and record terminal applications.

The command-line interface is built on this library. A frame::Frame is the stable, structured representation of one visible terminal shot, while a .termctrl recording is a JSON Lines stream of recording::Entry values.

let shot = terminal_control::shot::from_ansi(b"ready".to_vec(), 1, 20, 1024).unwrap();
assert_eq!(shot.frame.text(), "ready");

Modulesยง

driver
Versioned stdio protocol for TypeScript and other external session clients.
frame
recording
render
session
shot