ZAP Programs

small full-screen apps written in ZAP, the scripting language built into ZeaxOS. they run like the built-in apps but are not part of the OS image — read the source here or download the file.

Calculator

mouse fixed point

A full-screen calculator with a mouse-driven keypad. ZAP only has integers, so the value is kept multiplied by 100 and formatted back into two decimal places. Handles +, -, *, /, % and divide-by-zero. Press Ctrl+Esc to quit.

The calculator running
source

                

File browser

mouse filesystem

Browsers the in-memory filesystem. Folders come first and every entry shows its size; click a folder to open it, and Up to go back. The listing is only rebuilt when you change directory, so it stays still (and cheap) while idle.

The file browser running
source

                
Running these

These are plain-text .zap files. They are not part of the ZeaxOS image — open one in the editor (edit calculator.zap, paste it in, save) and then run it with run calculator.zap.

They behave like real apps: they take over the screen with their own title bar, show ZeaxOS's green + mouse cursor, and quit with Ctrl+Esc. They are written for ZAP v3, stay under the 4 KB file limit, and only redraw (and allocate) when something changes, so they keep running inside ZAP's fixed arena.