This folder contains a full ncurses wrapper for ZLang and demo programs.
ncurses-full.h— original C header used as sourcencurses.zl— auto-generated wrapperdemos/lane_dodge.zl— 2D lane dodge demodemos/starfield2d.zl— 2D animated starfield demodemos/raycast3d.zl— 3D ASCII raycasting demo
The wrapper is generated automatically by the built-in ZLang command:
zlang wrap-clang ncurses-full.h -o ncurses-zl/ncurses.zl -- -I/usr/includeThe wrap-clang pipeline preprocesses the header with clang and performs ABI-aware wrapper generation so C library usage in ZLang stays close to C-level APIs.
From repository root:
zlang ncurses-zl/demos/lane_dodge.zl ncurses-zl/ncurses.zl
./outputzlang ncurses-zl/demos/starfield2d.zl ncurses-zl/ncurses.zl
./outputzlang ncurses-zl/demos/raycast3d.zl ncurses-zl/ncurses.zl
./outputIf std modules are not globally installed yet, use:
ZSTDPATH=/home/hedgegod/zig/zlang/stdlib zlang ncurses-zl/demos/raycast3d.zl ncurses-zl/ncurses.zl
./output