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_64bit test.php
Raw

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

<?php
declare(strict_types=1);
if ($test->ffi->tb_attr_width() !== 64) {
// This will only work with 64-bit attrs
$test->skip();
}
$test->ffi->tb_init();
$attrs = [
'TB_STRIKEOUT',
// 'TB_OVERLINE', // Not supported by xterm
'TB_INVISIBLE',
'TB_UNDERLINE_2',
];
$y = 0;
foreach ($attrs as $attr) {
$test->ffi->tb_printf(0, $y++, $test->defines[$attr], 0, 'attr=%s', $attr);
}
$test->ffi->tb_present();
$test->screencap();