@teaui/core
Version:
A high-level terminal UI library for Node
13 lines (12 loc) • 443 B
TypeScript
import type { View } from './View.js';
/**
* Render a View to an ANSI string at the given size, without needing a real terminal.
*
* @param view - The View (or Container) to render
* @param size - The terminal size to render at {width, height}
* @returns A string containing ANSI escape codes representing the rendered output
*/
export declare function renderToAnsi(view: View, size: {
width: number;
height: number;
}): string;