Packages

Multi-surface application runtime for Elixir. One TEA module renders to terminal, browser (LiveView), SSH, and MCP (agents). 30+ widgets, flexbox + CSS grid, AI agent runtime, distributed swarm with CRDTs, time-travel debugging, session recording, sandboxed REPL, and agentic commerce.

Current section

Files

Jump to
raxol lib termbox2_nif c_src termbox2 tests test_invalidate test.php
Raw

lib/termbox2_nif/c_src/termbox2/tests/test_invalidate/test.php

<?php
declare(strict_types=1);
$test->ffi->tb_init();
$y = 0;
$fg = 7;
$test->ffi->tb_printf(0, $y++, $fg, 0, "cyan (then gray after mode switch and invalidate)");
$test->ffi->tb_present();
$test->ffi->tb_set_output_mode($test->defines['TB_OUTPUT_GRAYSCALE']);
$test->ffi->tb_invalidate();
$test->ffi->tb_printf(0, $y++, $fg, 0, "gray");
$test->ffi->tb_present();
$test->screencap();