#[no_mangle]
pub extern "C" fn ratatui_create(
cols: u16,
rows: u16,
font_size: f32,
) -> *mut c_voidExpand description
Creates a terminal instance and returns an opaque handle.
The resulting handle owns:
- a ratatui
Terminalbacked byTestBackendsizedcols × rowscells, - a glyph-cached
FontManageratfont_sizepixels, - a pre-allocated RGB24 pixel buffer matching
cols × rows × cell_size.
The handle must eventually be released with ratatui_destroy.
§Parameters
cols: terminal width in character cells.rows: terminal height in character cells.font_size: glyph rasterization size in pixels (e.g.14.0).