diff options
| author | Gabriel Schneider <[email protected]> | 2026-07-05 20:21:50 -0300 |
|---|---|---|
| committer | Gabriel Schneider <[email protected]> | 2026-08-01 15:02:07 -0300 |
| commit | de4def3548a6729b0dfd2120495a61beef8c8c2c (patch) | |
| tree | 12144f0f64dc96bb4741459c1f9db57f44349330 /ui_vaxis.zig | |
| parent | 7988d9bc6e31210ff13994f18d5622dd57ba9341 (diff) | |
| download | pardes-de4def3548a6729b0dfd2120495a61beef8c8c2c.tar.gz pardes-de4def3548a6729b0dfd2120495a61beef8c8c2c.zip | |
pardes v2: the rewrite, complete and organized. src/ (core + three shells), test/ (snapshot parity harness + 18 frozen goldens). One sans-IO core, vaxis tty + SDL3 GPU native + wasm web shells, 18/18 parity with the purged prototype, 7.6k lines vs 12.1k. Fix: gui shell pre-sized the core at init so the greet-releasing resize never fired (blank panes until first interaction); live sessions now init at defaults and get the real grid as a resize event (the shell contract, documented on Options).
Diffstat (limited to 'ui_vaxis.zig')
| -rw-r--r-- | ui_vaxis.zig | 38 |
1 files changed, 0 insertions, 38 deletions
diff --git a/ui_vaxis.zig b/ui_vaxis.zig deleted file mode 100644 index 1a3ce0af..00000000 --- a/ui_vaxis.zig +++ /dev/null @@ -1,38 +0,0 @@ -// The UI abstraction surface. `main.zig` and `image.zig` program against THIS -// module (importing `"ui"`) instead of libvaxis directly, so the rendering + -// input backend can be swapped at build time (`-Dui=vaxis|sdl`). -// -// This is the *vaxis* (real terminal) backend: a transparent passthrough. It -// re-exports the libvaxis declarations the app uses, so every type (`Key`, -// `Mouse`, `Window`, `Cell`, …), the `Vaxis` renderer/loop, `Tty`, and `init` -// are exactly libvaxis's. All the UI logic therefore behaves identically to the -// pre-refactor app — this file exists purely as the seam a different backend -// (`ui_sdl.zig`) can replace. -// -// (Zig 0.16 dropped `pub usingnamespace`, so the re-export is explicit.) -const vaxis = @import("vaxis"); - -pub const Vaxis = vaxis.Vaxis; -pub const Tty = vaxis.Tty; -pub const Loop = vaxis.Loop; -pub const init = vaxis.init; - -pub const Key = vaxis.Key; -pub const Mouse = vaxis.Mouse; -pub const Winsize = vaxis.Winsize; -pub const Color = vaxis.Color; -pub const Style = vaxis.Style; -pub const Cell = vaxis.Cell; -pub const Segment = vaxis.Segment; -pub const Window = vaxis.Window; -pub const Screen = vaxis.Screen; -pub const Image = vaxis.Image; -pub const Event = vaxis.Event; -pub const Capabilities = vaxis.Capabilities; -pub const Options = vaxis.Options; -pub const CursorShape = vaxis.Cell.CursorShape; -pub const supports_terminal_prepaint = true; - -pub fn adoptAltScreen(vx: *Vaxis) void { - vx.state.alt_screen = true; -} |
