summaryrefslogtreecommitdiff
path: root/addons/snake
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-06 06:24:42 -0300
committerGabriel Schneider <[email protected]>2026-11-06 11:19:32 -0300
commit0893d632e242553390d968751fff0e880627c34a (patch)
tree154e40245fd97bf399efa2cc99872b5a48b1d0a0 /addons/snake
parent7ccbb0fa852e327b6663ba933f134d5013484007 (diff)
downloadpardes-0893d632e242553390d968751fff0e880627c34a.tar.gz
pardes-0893d632e242553390d968751fff0e880627c34a.zip
kinds #12, ABI 2.1: pardes_addon.h grows at the ends of its records (pa_api's heap, view, exec and select, pa_paint's rail thumb, pa_ops's search, PA_WHEEL_LEFT and RIGHT) and the core reads them only from a 2.1 head: Esc goes to a 2.1 kind first, a press's drag and release stay its own and the pointer leaving is told, tick comes again on a view change, a kind's search rows, place, Exec and selection are taped, the jobs a call asks are emitted on every core from its taped outcome, a Shadow lays its tag out from the authority's prefix and keeps its tick state when it joins, a view's raster is its frontend's, and fake.c and snake.c leave Esc to the core
Co-Authored-By: Claude Fable 5.1 <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNAtZenFv4weoMD3cge
Diffstat (limited to 'addons/snake')
-rw-r--r--addons/snake/snake.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/snake/snake.c b/addons/snake/snake.c
index e6ad96e4..ce9279dc 100644
--- a/addons/snake/snake.c
+++ b/addons/snake/snake.c
@@ -109,6 +109,7 @@ static void paint(void *st, const pa_window *w, pa_paint *out) {
static int key(void *st, const pa_key *k) {
snake *s = st;
+ if (k->cp == 0x1b) return 0; /* Esc leaves */
if (s->dead) { restart(s); return 1; }
int dx = 0, dy = 0;
switch (k->cp) {