code wiki / (root) / nx_render_cli.nx

nx_render_cli.nx

buildroot/runtime/nx_render_cli.nx

4942 B155 linesdepth 6pulls 6 transitivereach 3 importersview sourcekind librarytopic render
docsdependenciesstructsconstsfunctions

about

nx_render_cli.nx -- native ASCII visualization engine. Per user 2026-05-15: "build the visual in cli, browser, etc it should be native". CLI side: ASCII bar chart, ASCII line plot, ASCII matrix display. Pure stdout writes via println(). No ncurses, no termcap, no external lib -- works in any 80-col terminal.

dependencies 1 imports · 1 importers

nx_kernel_v2.nx nx_render_cli.nx nx_capabilities_test.nx

imports: nx_kernel_v2.nx

imported by: nx_capabilities_test.nx

structs

none

consts

18const NX_RENDER_BAR_MAX: nx_int = 60
19const NX_RENDER_PLOT_W: nx_int = 60
20const NX_RENDER_PLOT_H: nx_int = 20

functions

23func nx_render_max(values: *nx_int, n: nx_int) -> nx_int
36func nx_render_min(values: *nx_int, n: nx_int) -> nx_int
called by 1: nx_render_line
51func nx_render_bar_row(label: nx_int, value: nx_int, max_v: nx_int) -> nx_int
called by 1: nx_render_bar
66func nx_render_bar(values: *nx_int, n: nx_int) -> nx_int
85func nx_render_line(values: *nx_int, n: nx_int) -> nx_int
139func nx_render_matrix(data: *nx_int, rows: nx_int, cols: nx_int) -> nx_int