Skip to content

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 

Repository files navigation

ncurses-zl

This folder contains a full ncurses wrapper for ZLang and demo programs.

Contents

  • ncurses-full.h — original C header used as source
  • ncurses.zl — auto-generated wrapper
  • demos/lane_dodge.zl — 2D lane dodge demo
  • demos/starfield2d.zl — 2D animated starfield demo
  • demos/raycast3d.zl — 3D ASCII raycasting demo

How wrapper was generated

The wrapper is generated automatically by the built-in ZLang command:

zlang wrap-clang ncurses-full.h -o ncurses-zl/ncurses.zl -- -I/usr/include

The 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.

Build and run demos

From repository root:

zlang ncurses-zl/demos/lane_dodge.zl ncurses-zl/ncurses.zl
./output
zlang ncurses-zl/demos/starfield2d.zl ncurses-zl/ncurses.zl
./output
zlang ncurses-zl/demos/raycast3d.zl ncurses-zl/ncurses.zl
./output

If 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

About

ncurses wrapper for ZLang

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages