aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-18 21:26:00 +0200
committeruser <user@clank>2026-08-18 21:26:00 +0200
commitb9e53cace4eb75263077df8623b011e66f5f2241 (patch)
tree78e4dfb23f5d1881dc7bfe9e4c96fd543bdfab0b
parentsl0ppty: aim the top handle at the middle, and stop ruling through the row (diff)
downloadslosh-b9e53cace4eb75263077df8623b011e66f5f2241.tar.gz
slosh-b9e53cace4eb75263077df8623b011e66f5f2241.tar.xz
slosh-b9e53cace4eb75263077df8623b011e66f5f2241.zip
slosh: rename the project from sl0ppty
sl0p + pty was error-prone to type and the zero made it worse; slosh (slop + sh) is one syllable, impossible to typo, and slosh.foo is ours. Mechanical rename everywhere it appears: binary, env vars (SLOSH, SLOSH_SESSION, SLOSH_BIN, SLOSH_CONFIG), socket dir (/tmp/slosh-<uid>, $XDG_RUNTIME_DIR/slosh), config path (~/.config/slosh), header guards, src/sl0ppty.h -> src/slosh.h, contrib/sl0ppty-dev -> contrib/slosh-dev, the driving-slosh skill, docs and tests. The sl0ppi fork references and the sl0p theme stay: one is history, the other is the brand. The rename surfaced a latent bug in test_osc5577: the hello-reply answer always appeared on screen twice (ECHOCTL echo plus cat -v), but a seven-character implementation name happened to wrap the second copy across the 60-column boundary, so counting substrings in wrapped text found one and passed for the wrong reason. A five-character name moved the wrap and exposed it. The loop guard itself is correct -- with echo off before the request there is exactly one reply -- so the test now counts on de-wrapped text and tolerates the pane's own echo.
-rw-r--r--.agents/skills/driving-slosh/SKILL.md (renamed from .agents/skills/driving-sl0ppty/SKILL.md)38
-rw-r--r--.fastfeedback/SPEED.md2
-rw-r--r--.git-blame-ignore-revs4
-rw-r--r--DESIGN.md14
-rw-r--r--HANDOVER.md8
-rw-r--r--Makefile20
-rw-r--r--README.md8
-rw-r--r--config/config.kdl36
-rw-r--r--config/example.layout.kdl8
-rw-r--r--contrib/README.md24
-rw-r--r--contrib/chrome/README.md4
-rw-r--r--contrib/chrome/bit-drift.kdl4
-rw-r--r--contrib/chrome/corner-glints.kdl4
-rw-r--r--contrib/chrome/gradient.kdl4
-rw-r--r--contrib/chrome/heartbeat.kdl4
-rw-r--r--contrib/chrome/marching-ants.kdl4
-rw-r--r--contrib/chrome/ripple.kdl4
-rw-r--r--contrib/chrome/shimmer.kdl4
-rw-r--r--contrib/chrome/shine.kdl4
-rw-r--r--contrib/chrome/sine-comet.kdl4
-rw-r--r--contrib/chrome/spinner.kdl4
-rw-r--r--contrib/chrome/standing-wave.kdl4
-rw-r--r--contrib/chrome/title-sheen.kdl4
-rw-r--r--contrib/chrome/xor-barcode.kdl4
-rwxr-xr-xcontrib/coverage6
-rw-r--r--contrib/docs.css2
-rwxr-xr-xcontrib/gen-docs14
-rwxr-xr-xcontrib/gen-shaders4
-rw-r--r--contrib/shader-plugin/Makefile12
-rw-r--r--contrib/shader-plugin/README.md10
-rw-r--r--contrib/shader-plugin/example.c6
-rwxr-xr-xcontrib/shader-repl8
-rwxr-xr-xcontrib/shader-tour6
-rw-r--r--contrib/shaders/built-ins-checker.kdl4
-rw-r--r--contrib/shaders/built-ins-gradient.kdl4
-rw-r--r--contrib/shaders/built-ins-ruler.kdl4
-rw-r--r--contrib/shaders/built-ins-scanlines.kdl4
-rw-r--r--contrib/shaders/built-ins-spotlight.kdl4
-rw-r--r--contrib/shaders/built-ins-vignette.kdl4
-rw-r--r--contrib/shaders/built-ins-zebra.kdl4
-rw-r--r--contrib/shaders/crt-amber.kdl4
-rw-r--r--contrib/shaders/crt-film.kdl4
-rw-r--r--contrib/shaders/crt-interlace.kdl4
-rw-r--r--contrib/shaders/crt-phosphor.kdl4
-rw-r--r--contrib/shaders/crt-rolling-bar.kdl4
-rw-r--r--contrib/shaders/guides-crosshair.kdl4
-rw-r--r--contrib/shaders/guides-cursor-line.kdl4
-rw-r--r--contrib/shaders/guides-edge-falloff.kdl4
-rw-r--r--contrib/shaders/guides-focus-mode.kdl4
-rw-r--r--contrib/shaders/guides-indent-guides.kdl4
-rw-r--r--contrib/shaders/guides-right-margin.kdl4
-rw-r--r--contrib/shaders/guides-thirds.kdl4
-rw-r--r--contrib/shaders/guides-torch.kdl4
-rw-r--r--contrib/shaders/motion-barber-pole.kdl4
-rw-r--r--contrib/shaders/motion-matrix-rain.kdl4
-rw-r--r--contrib/shaders/motion-plasma.kdl4
-rw-r--r--contrib/shaders/motion-pulse.kdl4
-rw-r--r--contrib/shaders/motion-ripples.kdl4
-rw-r--r--contrib/shaders/motion-sonar.kdl4
-rw-r--r--contrib/shaders/motion-sweep.kdl4
-rw-r--r--contrib/shaders/motion-typewriter.kdl4
-rw-r--r--contrib/shaders/pane-states-dead.kdl4
-rw-r--r--contrib/shaders/pane-states-scrolled.kdl4
-rw-r--r--contrib/shaders/pane-states-suspended.kdl4
-rw-r--r--contrib/shaders/pane-states-unfocused.kdl4
-rw-r--r--contrib/shadertoy.html16
-rwxr-xr-xcontrib/slosh-dev (renamed from contrib/sl0ppty-dev)18
-rwxr-xr-xcontrib/theme-tour6
-rw-r--r--contrib/themes/amber.kdl2
-rw-r--r--contrib/themes/mono.kdl2
-rw-r--r--contrib/themes/paper.kdl2
-rw-r--r--contrib/themes/phosphor.kdl2
-rw-r--r--contrib/themes/sl0p.kdl2
-rw-r--r--contrib/themes/slate.kdl2
-rw-r--r--docs/config.md20
-rw-r--r--docs/design.md2
-rw-r--r--docs/index.md8
-rw-r--r--docs/keys.md2
-rw-r--r--docs/layouts.md36
-rw-r--r--docs/panes.md2
-rw-r--r--docs/scripting.md22
-rw-r--r--docs/shaders.md6
-rw-r--r--docs/workspaces.md22
-rw-r--r--src/app.c12
-rw-r--r--src/app.h10
-rw-r--r--src/client.c2
-rw-r--r--src/cmd.h6
-rw-r--r--src/config.c19
-rw-r--r--src/config.h14
-rw-r--r--src/expr.h6
-rw-r--r--src/graphics.h6
-rw-r--r--src/headless.c8
-rw-r--r--src/input.h6
-rw-r--r--src/json.h6
-rw-r--r--src/jsonval.h6
-rw-r--r--src/kdl.h6
-rw-r--r--src/main.c34
-rw-r--r--src/osc5577.h6
-rw-r--r--src/pane.c4
-rw-r--r--src/path.c2
-rw-r--r--src/png.h6
-rw-r--r--src/project.c2
-rw-r--r--src/project.h8
-rw-r--r--src/proto.c4
-rw-r--r--src/proto.h8
-rw-r--r--src/pty.c4
-rw-r--r--src/screen.c2
-rw-r--r--src/server.c23
-rw-r--r--src/server.h8
-rw-r--r--src/shader.c8
-rw-r--r--src/shader.h8
-rw-r--r--src/shader_abi.h26
-rw-r--r--src/slosh.h (renamed from src/sl0ppty.h)8
-rw-r--r--tests/harness.py18
-rw-r--r--tests/live_input.py4
-rw-r--r--tests/live_m0.py6
-rw-r--r--tests/live_reload.py6
-rw-r--r--tests/shader_plugin_test.c6
-rwxr-xr-xtests/test_check.py8
-rwxr-xr-xtests/test_chrome_presets.py2
-rw-r--r--tests/test_config.py4
-rwxr-xr-xtests/test_docs.py2
-rw-r--r--tests/test_dump_config.py12
-rw-r--r--tests/test_dump_layout.py2
-rw-r--r--tests/test_hints.py18
-rw-r--r--tests/test_layout_files.py2
-rw-r--r--tests/test_osc5577.py14
-rw-r--r--tests/test_portable_layouts.py8
-rw-r--r--tests/test_reload.py12
-rw-r--r--tests/test_session.py6
-rw-r--r--tests/test_shader_plugin.py4
-rw-r--r--tests/test_shader_presets.py4
-rwxr-xr-xtests/test_shader_repl.py2
-rw-r--r--tests/test_shadertoy.py2
-rwxr-xr-xtests/test_skill.py26
-rw-r--r--tests/test_states.py4
-rw-r--r--tests/test_wide_marks.py2
-rw-r--r--tests/test_workspaces.py20
-rw-r--r--vendor/libghostty-vt/src/terminal/Terminal.zig4
-rw-r--r--vendor/patches/0001-keep-kitty-images-across-a-screen-clear.patch4
140 files changed, 530 insertions, 526 deletions
diff --git a/.agents/skills/driving-sl0ppty/SKILL.md b/.agents/skills/driving-slosh/SKILL.md
index 1aa4997..e7745e6 100644
--- a/.agents/skills/driving-sl0ppty/SKILL.md
+++ b/.agents/skills/driving-slosh/SKILL.md
@@ -1,18 +1,18 @@
---
-name: driving-sl0ppty
+name: driving-slosh
description: >-
- Drive a sl0ppty terminal multiplexer: run a long-lived command somewhere its
+ Drive a slosh terminal multiplexer: run a long-lived command somewhere its
output can be watched, read a pane's screen, arrange panes and tabs, find a
pane by purpose, open a project workspace, and report progress or ask a
- question from inside a pane. Activates when `SL0PPTY` is set in the
+ question from inside a pane. Activates when `SLOSH` is set in the
environment, when a task needs a dev server, log tailer or build left running
- while other work continues, or when the user mentions sl0ppty, panes, tabs or
+ while other work continues, or when the user mentions slosh, panes, tabs or
workspaces.
---
-# Driving sl0ppty
+# Driving slosh
-sl0ppty is a terminal multiplexer whose control socket does everything the
+slosh is a terminal multiplexer whose control socket does everything the
keyboard does. One JSON object per line in, one JSON object out. A detached
session answers exactly as an attached one does, so nothing here needs a
terminal, a tty, or anybody watching.
@@ -31,38 +31,38 @@ Every pane gets these:
| variable | means |
|---|---|
-| `SL0PPTY=1` | this process is running inside a sl0ppty pane |
-| `SL0PPTY_SESSION` | the name of the session it is in — empty under `--script` |
-| `SL0PPTY_BIN` | the binary that started it |
+| `SLOSH=1` | this process is running inside a slosh pane |
+| `SLOSH_SESSION` | the name of the session it is in — empty under `--script` |
+| `SLOSH_BIN` | the binary that started it |
-Use `$SL0PPTY_BIN`, not `sl0ppty`: a session may have been started from a build
-tree, and `sl0ppty` is then not on your `PATH`. Both are *set* by the thing that
-made your pane, never inherited from whatever started it: `SL0PPTY_SESSION` is
+Use `$SLOSH_BIN`, not `slosh`: a session may have been started from a build
+tree, and `slosh` is then not on your `PATH`. Both are *set* by the thing that
+made your pane, never inherited from whatever started it: `SLOSH_SESSION` is
unset under `--script`, which has no socket, rather than carrying the name of a
session the pane is not in. So empty means there is nothing to send commands to,
and it is worth checking before you build a command line out of it:
```bash
-[ -n "$SL0PPTY_SESSION" ] || { echo "no session to talk to"; exit 1; }
+[ -n "$SLOSH_SESSION" ] || { echo "no session to talk to"; exit 1; }
```
From *outside* a pane, list sessions:
```bash
-sl0ppty ls
+slosh ls
# main running
# work stale
```
`stale` is a socket whose server is gone. Addressing a session that does not
-exist prints `sl0ppty: no session named X` and exits 1 — so a failed call is
+exist prints `slosh: no session named X` and exits 1 — so a failed call is
distinguishable from a call that answered `{"ok":false}`.
## The one interface
```bash
-SL=${SL0PPTY_BIN:-sl0ppty}
-S="$SL -s $SL0PPTY_SESSION cmd" # empty means no session, not `main`
+SL=${SLOSH_BIN:-slosh}
+S="$SL -s $SLOSH_SESSION cmd" # empty means no session, not `main`
$S '{"cmd":"panes"}'
$S '{"cmd":"new-tab","name":"build"}'
@@ -243,7 +243,7 @@ Two rules:
*keybinding* action name, not a socket verb.)
- Do not `{"cmd":"quit"}` a session you did not start. It ends every pane in it,
including the user's.
-- A session you started for your own work is yours to quit: `sl0ppty -s mine cmd quit`.
+- A session you started for your own work is yours to quit: `slosh -s mine cmd quit`.
## Verbs
@@ -270,7 +270,7 @@ Two rules:
```bash
printf '%s\n' '{"cmd":"split","dir":"cols"}' '{"cmd":"snapshot","format":"text"}' \
- | sl0ppty --script --cols 80 --rows 24 -- /bin/sh
+ | slosh --script --cols 80 --rows 24 -- /bin/sh
```
`--script` is the whole program without a terminal: verbs on stdin, answers on
diff --git a/.fastfeedback/SPEED.md b/.fastfeedback/SPEED.md
index f22d26c..d62d13a 100644
--- a/.fastfeedback/SPEED.md
+++ b/.fastfeedback/SPEED.md
@@ -1,4 +1,4 @@
-# SPEED — sl0ppty
+# SPEED — slosh
All numbers measured on this box, 2026-08-14. Re-measure only if something
structural changes.
diff --git a/.git-blame-ignore-revs b/.git-blame-ignore-revs
index 9d8b88d..ae0a4be 100644
--- a/.git-blame-ignore-revs
+++ b/.git-blame-ignore-revs
@@ -5,8 +5,8 @@
# (`make hooks` does not set this -- it is a reading preference, not a rule, and
# it belongs to whoever is doing the reading.)
-# sl0ppty: clang-format the tree
+# slosh: clang-format the tree
ec91ccffe631ae34b111bf6161fd0e3c487f684c
-# sl0ppty: ruff format the Python
+# slosh: ruff format the Python
c0022776d0912042819e4ea330cf7491a8196b45
diff --git a/DESIGN.md b/DESIGN.md
index b1d7f38..77951d1 100644
--- a/DESIGN.md
+++ b/DESIGN.md
@@ -1,4 +1,4 @@
-# sl0ppty — design
+# slosh — design
An opinionated terminal multiplexer in C, built on
[libghostty-vt](https://github.com/ghostty-org/ghostty).
@@ -125,7 +125,7 @@ Drawing and hit-testing cannot disagree, because there is only one of them.
From the sl0ppi roadmap, four separate times: *unit tests were necessary and
insufficient.* Every real bug was found by reading the screen.
-> **`sl0ppty --script` runs the entire compositor with no tty: commands in
+> **`slosh --script` runs the entire compositor with no tty: commands in
> (`send`, `raw`, `settle`, `resize`, `snapshot`), and the composited screen out
> as JSON — rows of text, style runs, cursor, hit-list.**
@@ -147,7 +147,7 @@ unreadable.
| **D2** | **Config is a hand-rolled KDL subset** (`kdl.c`, 300 lines, no dependency): nodes with arguments, `key=value` properties, children, `//` and `/* */` comments, `;` terminators for single-line nodes. `config/config.kdl` documents every setting by *being* the defaults. A broken file costs a warning on stderr and nothing else; `{"cmd":"reload"}` re-reads it live and refuses a file it cannot parse rather than half-applying it. **Two schemas share the syntax** -- a config and a layout -- so layout files are named `*.layout.kdl`: the extension says how to read the file and the stem says what is in it, the way `docker-compose.yml` does. Naming them something other than KDL would trade one wrong signal for another, since one parser really does read both. A name cannot enforce anything, so each loader also *says* which document it was handed (`this is a layout, not a config`, and the reverse), both answers measured against the same list of settings the loader reads. That list is what makes an unknown top-level node reportable at all: a loader that asks a document only for the keys it knows never notices what it was given, which is why a mistyped setting used to do nothing quietly and a whole layout linted clean. |
| **D3** | **Clean JSON control API** (one JSON object per line on a unix socket): `{"cmd":"new-tab","purpose":"project:x.deadbeef"}` -> `{"ok":true,"id":2}`. We do *not* mimic `zellij action`'s surface. A bare-verb form (`panes`, `snapshot text`) is kept as a human/harness alias and runs the same code, so a script cannot drift from what the API does. The `sl0ppi` CLI is ported on top later; `up`'s idempotency and D9's fail-open property carry over. |
| **D4** | **Scrollback yes** (free from lib-vt), **copy-mode UI later.** "Free" was true of the *machinery* and quietly false of the *size*: handed no limit, lib-vt picks its own — 10,000 **bytes**, which measured at 622 lines of an 80-column pane, less than one `make` run. A promise to keep history that keeps a screenful of it is the kind of thing a library default gets to decide only once. So `scrollback` is lines, defaulting to the 10,000 every other multiplexer settled on, and `scrollback_bytes` is the ceiling that count runs into: lib-vt applies whichever limit is reached first, and it has to, because a line count cannot see how wide the terminal is or how many styles a program used and a byte count cannot see how many lines that bought. Measured at 10,000 lines of styled output: ~6 MB at 80 columns (the ceiling never bites), ~15 MB at 200 (it costs 2% of the lines), ~32 MB at 400 (it costs half). Invisible at ordinary widths and a brake at extraordinary ones, which is the job. There is deliberately **no unlimited**: the ceiling is per pane, sixty panes is sixty times it, and "unlimited" across that many is a memory leak with a friendly name — a negative is refused rather than wrapped into one. Both are read when a pane is created, so they apply to the next pane you open rather than to panes already holding output somebody is reading, which is the same rule and the same reason as `shell`. |
-| **D5** | Binary, session dir, socket and config are all named **`sl0ppty`**. |
+| **D5** | Binary, session dir, socket and config are all named **`slosh`**. |
| **D6** | **Responsive layout is a pure function** — see below. If *any* node cannot give its children their floor, the **whole tab** flattens — asked of the tab, answered once, because half a screen of panes beside half a screen of headers explains neither what happened nor what to do about it. The check is the real layout run with resizing switched off, not a second implementation of the same arithmetic. Flattening means: every pane under it becomes one row in a flat list with the focused one opened below them, rather than a nest of headers. Nesting is exactly what there is no room to express, and in that state a reader wants *which pane*, not *which arrangement*. It also makes every pane reachable — collapsing a subtree to a single header gave every leaf inside it the same rect and one hit for the first of them, so the rest could not be clicked at all. |
| **D7** | **Server renders, client is dumb.** The client forwards raw bytes and paints what it is sent — it does not even decode, so the decoder can change without redeploying clients, and a bug there costs a frame rather than a session. The same socket is the scripting API. Detach/reattach is table stakes because agents keep running. |
| **D8** | **Panes and tabs carry `purpose=`**, sl0ppi's semantics kept verbatim, including the trust model: *declared purposes outrank in-band ones and cannot be overridden*, so `cat hostile.txt` cannot relabel a project tab. Declared means "from a layout or an operator", i.e. the control path; the in-band path (OSC, M4) always passes `declared:false` and is refused against a locked slot. Sanitised on ingest to `[A-Za-z0-9_.:/-]`. |
@@ -163,7 +163,7 @@ unreadable.
| **D18** | **We decode PNG ourselves, with the stb_image we already vendor.** lib-vt ships no image codec: built as a library its `sys.decode_png` hook is null, and a null hook rejects every `f=100` transmission outright — no image stored, no placement, nothing to re-emit. A program that uploads a PNG (which is what a program with a picture on disk does) drew nothing at all, silently, while raw RGB worked. Found because ida-tui's startup logo never appeared. PNG is the only format this can ever be about: the protocol has exactly three (`f=24`, `f=32`, `f=100`) and the first two are raw pixels lib-vt already handles, and `decode_png` is the only codec hook it has — so there is no scope to creep. Decoding only, never encoding; the client is handed RGBA. The decoder is `vendor/libghostty-vt/src/stb/stb_image.h`, which is **already in the tree and already pinned** by the vendor commit — upstream compiles that same header with the same `STBI_ONLY_PNG` for the same reason (`src/stb/stb.c` says so), it is simply not part of the `-Demit-lib-vt` build. So this is not a new dependency, it is a file we already ship finally being compiled, and `src/png.c` is a hook and a copy around it. Hand-rolling a subset decoder was considered and rejected: the bulk of a PNG decoder is a DEFLATE inflate, and "just the colour type ida-tui uses" breaks on the first palette PNG, which is what every png optimiser emits. That is a lot of new bounds-checked parsing, fed by whatever a pane decides to send, to replace a file already in the repo. Two consequences to know: we re-emit **decoded** pixels, so a 819KB logo goes to the client as 3.3MB of base64 (once per image, again after a reattach clears `sent`) — passing the original PNG through would be cheaper but lib-vt hands back only the decoded form; and lib-vt caps image storage at **10MB** in library builds, so images are bigger than they look. |
| **D19** | **The finder and the command palette are one picker with a subject.** They are the same object — a modal, a query, a filtered list, one selection, the same keys and the same mouse rules — differing only in what fills the rows and what Enter does with one. Building the second as its own machine would have meant two of everything, and the pair would have drifted the way the pane title editor and a tab label editor would have if they had not been made one thing with a subject. So there is one `picker` state (`PICK_FINDER`/`PICK_PALETTE`), one draw, one key handler, and a `pick_row_t` of three columns that both fill: a dim left (a tab, a group), the thing itself, and a dim right (a purpose, the chord). Choosing goes through the row's own action string, so the keyboard and the mouse cannot take different paths to the same row. **The palette lists actions that are not bound to anything**, which the cheatsheet by design cannot — it is built from the binds, so an action with no key does not appear, and that is exactly the action you have no other way to reach. Where a binding does exist the palette shows it, so using the palette teaches the key that would have skipped it; where several exist it shows them all, because a config's binds add to the defaults rather than replacing them and naming only the first would hide the one the user chose. Two actions are left out: `literal-prefix`, which means "type this key" rather than "do this thing" and would send the prefix to a pane hidden behind the list, and `select-tab-N`, which is positional — a row saying "go to that tab" cannot say which. Running is by `action_t`, not by synthesising the keystroke that would have caused it: a palette that had to invent input to do its job would be lying to the rest of the program about what happened. |
| **D20** | **Chrome is a rect too, so it is a pass too.** `where="chrome"` on any entry in `shaders` or in a `states` block runs that pass over a pane's **frame** — border, padding, title, buttons — instead of its contents. Nothing else changes: same registry, same `amount`, same expressions (D16), same chain order, one new word. It is one pass over the frame's *whole* rect with the contents punched out as a hole, not four passes over four sides: an effect has to be able to travel round a border, and four passes would each count `x`/`y` from zero and restart at every corner. The hole is what keeps the two honest — a skipped cell is never visited, so a full-strength chrome tint cannot reach your text and a full-strength content tint cannot reach the border. The chains are stored separately rather than as a flag on each shader, because a pass *is* a chain and a rect, and because `shader_abi.h` has no business knowing where a session chose to run an effect. This is also the only kind of pass that can colour a pane a small window has collapsed to a single row (D6), which is the state where a colour is worth the most. **Animation needs a clock**, so `app_next_deadline_ms` reports one while a chain that reads `t` ran over the last frame — derived from what was applied, like everything else about a frame, so a pulse hung off `dead` costs `anim_ms` while a pane is dead and nothing for the rest of the session. Without it a border froze the moment you stopped typing, which is the bug that makes an animated shader look broken rather than absent. A **`bell` pane state** and a **`since`** variable came with it, because "flash the border when a pane rings" needed both and neither existed: a bell had no state to hang a chain off, and `t` says what time it is rather than how long ago something happened, so a one-shot effect was not expressible at all. `since` is milliseconds since the pane entered its current state, stamped in the one function that decides the state — a transition is the one thing a frame cannot tell you, so it is remembered, but it is remembered where it cannot disagree with the state it dates. `bell` ranks above the ambient states and below `dead`: a pane that rang while you were elsewhere is news, and a pane that rang and then exited is a pane that exited. It ends when you look at the pane, because that is what answering a bell is (the frame clock stops with it). Shipped off by default — `bell_indicator`'s quiet mark stays the default, and an animated default would spend a frame clock on every session. **`channel="fg"|"bg"|"both"`** came from the first border flash actually being looked at: `tint` mixes both of a cell's colours, and a frame's background is the terminal's own default, so the pass materialised it to our *guess* at that default and mixed towards the colour — a dark rectangle behind the glyphs, left there until the pane changed state. The mask is enforced by the pass, not by the shader: the cell's other colour is snapshotted before materialising and put back after, so it works for a built-in and a plugin alike, an unset colour goes back to *unset* rather than to our guess, and no shader grows an fg-only variant of itself. It is one byte tested once per pass, not per cell, and 0 means both so every shader built before it behaves as it did. |
-| **D21** | **A project is a directory; a workspace is the tab it occupies.** Two words because they are two things, and conflating them is how a session grows a second source of truth about what it is looking at. The directory is found rather than named: a `project_roots "~/dev" "~/work" depth=2` is scanned for subdirectories holding a `sl0ppty.layout.kdl` — or a `.git`, which is the project that has not said what it needs yet, and without which `~/dev` with forty checkouts and three layout files is a picker with three rows. A directory that *is* a project is never descended into, so the walk stays off `node_modules` without anyone writing a rule about `node_modules`. **Identity is the tab's `purpose`**, `project:<name>.<hash8>` of the resolved path — the shape D3 already published — so there is no second field to disagree with it, membership is a string comparison, and a dumped session restores it for free because a dump already writes tab purposes and applying one already locks them (D8). Hashed on the *path* rather than the name, so two worktrees of one repo are two workspaces, which is what they are. A tab whose layout gave it a purpose of its own keeps it and is simply not a member: overwriting a declared purpose is the one thing D8 forbids, and the reply counts the ones it left alone rather than letting that be a surprise later. **Nothing watches the filesystem.** The list is derived when it is asked for — one `readdir` per root and two `stat`s per entry, forty checkouts for eighty-one syscalls next to the keystroke that asked — and an answer nobody remembered cannot be stale, which is a promise no watcher can make on a bind mount. The picker scans once as it opens, not per frame, because `draw_picker` asks for its rows every frame and a `readdir` per repaint is a filesystem walk at 120Hz. The one thing a scan cannot see is a project's layout file changing under a workspace that is already open, and that is deliberately not answered by re-applying it over running processes: `workspaces` reports the file's `mtime`, and drift is derivable outside without this session storing a byte. **Opening is idempotent** (`sl0ppi up`'s property, D3): the same request twice is one workspace, focused, and the answer says which branch it took so a caller never has to ask first. **Saving is the inverse, and it is the whole of onboarding.** `save-workspace` is `dump-layout` for one tab, relative to the project, written beside it — the same dumper, so there is one answer to "what does this tab look like written down". Four things made that possible and none of them were true before: a relative `cwd=` in a layout file now resolves against that file's directory (the rule `include` already followed, applied to the other half of the same syntax), a dump can be asked for one tab against a base, a pane from a split now starts where the pane it came out of stands rather than where the server was launched — which had been quietly writing an absolute path to somebody else's directory into every saved project — and **a dump now records what a pane is actually running**. That last one is what turns arranging a project and writing it down into one act instead of two: `label` only ever knew what a *layout* said, so a pane you split and typed `npm run dev` into had nothing to say for itself and came back as a bare shell. The kernel knows what the label does not — a pty has a foreground process group, and that group is by definition the job that owns the terminal — so the answer is read rather than guessed, the way `live_cwd` already reads `/proc/PID/cwd` rather than trusting where a pane was started. Three things are deliberately not commands: a shell at a prompt (its group is the pane's own, and `command="zsh"` on every idle pane restores a session where each shell runs inside a shell), a background job (it does not own the terminal, and resurrecting `&` jobs in the foreground describes a session nobody had), and an ephemeral pane (restoring one reopens a file somebody finished with). A declared label still outranks a live process, because it survives the program exiting (D14) and re-saving must not degrade `npm run dev` into whatever the process tree looks like this minute. argv is joined with shell quoting, since `command=` is run through `/bin/sh -c` and an argument with a space in it would otherwise come back as two. A saved project defaults to `suspend="commands"`: the pane running this morning's dev server is written asleep, because a *project's* layout is a statement of shape and a *session's* dump is a statement of fact, and starting a dev server on every open is exactly what `suspended` exists to prevent — which is worth much more now that there are commands to suspend. What is **not** built: no guessing commands from `package.json` or `Cargo.toml` (a table of guesses that is wrong on day one and stale by year two — recording what you actually ran makes it unnecessary), no watcher, and no auto-save on close, because a layout file is a commit-sized decision. |
+| **D21** | **A project is a directory; a workspace is the tab it occupies.** Two words because they are two things, and conflating them is how a session grows a second source of truth about what it is looking at. The directory is found rather than named: a `project_roots "~/dev" "~/work" depth=2` is scanned for subdirectories holding a `slosh.layout.kdl` — or a `.git`, which is the project that has not said what it needs yet, and without which `~/dev` with forty checkouts and three layout files is a picker with three rows. A directory that *is* a project is never descended into, so the walk stays off `node_modules` without anyone writing a rule about `node_modules`. **Identity is the tab's `purpose`**, `project:<name>.<hash8>` of the resolved path — the shape D3 already published — so there is no second field to disagree with it, membership is a string comparison, and a dumped session restores it for free because a dump already writes tab purposes and applying one already locks them (D8). Hashed on the *path* rather than the name, so two worktrees of one repo are two workspaces, which is what they are. A tab whose layout gave it a purpose of its own keeps it and is simply not a member: overwriting a declared purpose is the one thing D8 forbids, and the reply counts the ones it left alone rather than letting that be a surprise later. **Nothing watches the filesystem.** The list is derived when it is asked for — one `readdir` per root and two `stat`s per entry, forty checkouts for eighty-one syscalls next to the keystroke that asked — and an answer nobody remembered cannot be stale, which is a promise no watcher can make on a bind mount. The picker scans once as it opens, not per frame, because `draw_picker` asks for its rows every frame and a `readdir` per repaint is a filesystem walk at 120Hz. The one thing a scan cannot see is a project's layout file changing under a workspace that is already open, and that is deliberately not answered by re-applying it over running processes: `workspaces` reports the file's `mtime`, and drift is derivable outside without this session storing a byte. **Opening is idempotent** (`sl0ppi up`'s property, D3): the same request twice is one workspace, focused, and the answer says which branch it took so a caller never has to ask first. **Saving is the inverse, and it is the whole of onboarding.** `save-workspace` is `dump-layout` for one tab, relative to the project, written beside it — the same dumper, so there is one answer to "what does this tab look like written down". Four things made that possible and none of them were true before: a relative `cwd=` in a layout file now resolves against that file's directory (the rule `include` already followed, applied to the other half of the same syntax), a dump can be asked for one tab against a base, a pane from a split now starts where the pane it came out of stands rather than where the server was launched — which had been quietly writing an absolute path to somebody else's directory into every saved project — and **a dump now records what a pane is actually running**. That last one is what turns arranging a project and writing it down into one act instead of two: `label` only ever knew what a *layout* said, so a pane you split and typed `npm run dev` into had nothing to say for itself and came back as a bare shell. The kernel knows what the label does not — a pty has a foreground process group, and that group is by definition the job that owns the terminal — so the answer is read rather than guessed, the way `live_cwd` already reads `/proc/PID/cwd` rather than trusting where a pane was started. Three things are deliberately not commands: a shell at a prompt (its group is the pane's own, and `command="zsh"` on every idle pane restores a session where each shell runs inside a shell), a background job (it does not own the terminal, and resurrecting `&` jobs in the foreground describes a session nobody had), and an ephemeral pane (restoring one reopens a file somebody finished with). A declared label still outranks a live process, because it survives the program exiting (D14) and re-saving must not degrade `npm run dev` into whatever the process tree looks like this minute. argv is joined with shell quoting, since `command=` is run through `/bin/sh -c` and an argument with a space in it would otherwise come back as two. A saved project defaults to `suspend="commands"`: the pane running this morning's dev server is written asleep, because a *project's* layout is a statement of shape and a *session's* dump is a statement of fact, and starting a dev server on every open is exactly what `suspended` exists to prevent — which is worth much more now that there are commands to suspend. What is **not** built: no guessing commands from `package.json` or `Cargo.toml` (a table of guesses that is wrong on day one and stale by year two — recording what you actually ran makes it unnecessary), no watcher, and no auto-save on close, because a layout file is a commit-sized decision. |
### D6 — responsive layout as a pure function
@@ -230,7 +230,7 @@ Only the display client's `MSG_INPUT` is honoured.
This is not fussiness, it is the fork's worst bug rebuilt correctly. From the
sl0ppi roadmap: `zellij action` failed 20-25%% of the time because every action
probed liveness by connecting, *that probe counted as a client*, and its
-teardown removed the real one. We reproduced it exactly — `sl0ppty ls` kicked
+teardown removed the real one. We reproduced it exactly — `slosh ls` kicked
the attached client off — within an hour of the server existing. The regression
test runs 20 x (`ls` + control command) against a live client and requires 0
failures and a client that can still type.
@@ -238,13 +238,13 @@ failures and a client that can still type.
## Shape
```
-sl0ppty-server (one per session; holds ptys + lib-vt terminals + layout)
+slosh-server (one per session; holds ptys + lib-vt terminals + layout)
├── epoll: pty fds, client socket, control socket, signalfd, timerfd
├── pane[] = { pty fd, GhosttyTerminal, purpose, chrome, hit-list }
├── layout tree (tabs -> split tree -> panes; stack/rail are node modes)
├── compositor: dirty panes -> cell grid -> diff vs last frame -> ANSI
└── control API: newline-delimited JSON on a unix socket
-sl0ppty-client (raw mode; decode input -> events; write bytes to tty)
+slosh-client (raw mode; decode input -> events; write bytes to tty)
```
Frame pacing: pty reads are coalesced and painted on a timerfd at a cap
diff --git a/HANDOVER.md b/HANDOVER.md
index 3ddad3c..6166d51 100644
--- a/HANDOVER.md
+++ b/HANDOVER.md
@@ -83,7 +83,7 @@ suspect what `server.c` does that `headless.c` does not.
before the next paint, so nothing had to think about it. Now that they stay,
an EOF fd left in the poll set is *readable forever*: the session would spin a
core behind a pane that looks idle. `collect_cb` skips `fd < 0` for the same
-reason, and that is why `sl0ppty run cmd` still terminates — the settle loop
+reason, and that is why `slosh run cmd` still terminates — the settle loop
ends when no pane has an fd left.
**`settle N` in the test harness is a sleep in disguise.** `send` and
@@ -312,7 +312,7 @@ says "<prefix> then:" and these are exactly the ones that is not true of.
## Restarting into the same screen
-`dump-layout` is the inverse of `--layout`, and `contrib/sl0ppty-dev` is the
+`dump-layout` is the inverse of `--layout`, and `contrib/slosh-dev` is the
loop that uses it: dump, quit, come back on the new binary with the same
shape. Three things it got wrong first, all of the same kind -- a dump that
loads without complaint and rebuilds something subtly different:
@@ -334,7 +334,7 @@ there immediately, where "does it look right" would not.
## Coverage, and what its numbers mean
`make coverage` builds a gcc `--coverage` binary into build/cov, runs every
-suite against it through `$SL0PPTY_BIN`, and prints a per-file table. About a
+suite against it through `$SLOSH_BIN`, and prints a per-file table. About a
minute, nothing installed, the zig build untouched. Currently ~85%.
Two things about the numbers, both worth knowing before anyone acts on them:
@@ -352,7 +352,7 @@ Two things about the numbers, both worth knowing before anyone acts on them:
## The config file, and the two places it lives
-`sl0ppty --dump-config` renders every setting from the live values -- there is
+`slosh --dump-config` renders every setting from the live values -- there is
no checked-in copy of the defaults to drift, which was the actual problem:
config/config.kdl had already lost four theme colours before anyone noticed.
That file is now explicitly the *prose* (why a setting exists), and the values
diff --git a/Makefile b/Makefile
index 98a1b59..14c5c98 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-# sl0ppty — see DESIGN.md
+# slosh — see DESIGN.md
#
# zig is the C compiler: it is already required to build libghostty-vt, and it
# gives us static musl linking and cross-compilation for free (D12).
@@ -27,7 +27,7 @@ LDFLAGS :=
SRC := $(wildcard src/*.c)
OBJ := $(SRC:src/%.c=build/%.o)
DEPS := $(OBJ:.o=.d)
-BIN := build/sl0ppty
+BIN := build/slosh
# One stamp per python test file. The stamp depends on the file, the harness and
# the binary, so an untouched test whose binary has not changed does not run
@@ -60,7 +60,7 @@ help: ## show this
@grep -hE '^[a-z-]+:.*##' $(MAKEFILE_LIST) | sed 's/:.*##/\t/' | expand -t20
@printf '\n%-19s %s\n' 'V=1' 'show the command lines rather than [CC] src/app.c'
-all: $(BIN) ## build sl0ppty
+all: $(BIN) ## build slosh
$(BIN): $(OBJ) $(VT_LIB)
$(call say,[LD],$@)
@@ -81,7 +81,7 @@ build/png.o: src/png.c build/version.h $(VT_LIB) | build
# rebuilds, and `make` twice in a row does not.
.PHONY: FORCE
build/version.h: FORCE | build
- @printf '/* generated by the Makefile */\n#define SL0PPTY_VERSION "%s+%s"\n' \
+ @printf '/* generated by the Makefile */\n#define SLOSH_VERSION "%s+%s"\n' \
'$(VERSION)' '$(GITDESC)' > $@.tmp
@cmp -s $@.tmp $@ || mv $@.tmp $@
@rm -f $@.tmp
@@ -178,7 +178,7 @@ test-live: $(BIN) ## the checks that need a real tty (slow)
test-all: test test-live ## everything
smoke: $(BIN) ## compose a screen headlessly and print it
- ./$(BIN) --headless --cols 40 --rows 12 -- /bin/sh -c 'printf "hello \033[1;32msl0ppty\033[0m\n"; echo "wide: 日本語"'
+ ./$(BIN) --headless --cols 40 --rows 12 -- /bin/sh -c 'printf "hello \033[1;32mslosh\033[0m\n"; echo "wide: 日本語"'
docs: ## render docs/ into build/docs (no dependencies; open build/docs/index.html)
$(Q)python3 contrib/gen-docs build/docs
@@ -190,7 +190,7 @@ run: $(BIN) ## build and run
#
# A second build, with gcc instead of zig, because the counters need a gcov
# that matches the compiler and gcov is what this machine has. It lives in
-# build/cov and touches nothing else; $SL0PPTY_BIN is how the same suite drives
+# build/cov and touches nothing else; $SLOSH_BIN is how the same suite drives
# it. `-O0` because optimised line counts are a work of fiction.
COV_DIR := build/cov
COV_SRC := $(wildcard src/*.c)
@@ -205,7 +205,7 @@ $(COV_DIR)/%.o: src/%.c build/version.h | $(COV_DIR)
$(COV_DIR):
@mkdir -p $(COV_DIR)
-$(COV_DIR)/sl0ppty: $(COV_OBJ) $(VT_LIB)
+$(COV_DIR)/slosh: $(COV_OBJ) $(VT_LIB)
$(call say,[LD],$@)
$(Q)$(COV_CC) --coverage $(COV_OBJ) $(VT_LIB) -o $@
@@ -230,16 +230,16 @@ $(COV_DIR)/expr_test: tests/expr_test.c $(COV_DIR)/expr.o
$(call say,[LD],$@)
$(Q)$(COV_CC) $(COV_FLAGS) $^ -o $@
-coverage: $(COV_DIR)/sl0ppty $(COV_UNITS) ## how much of the code the tests run
+coverage: $(COV_DIR)/slosh $(COV_UNITS) ## how much of the code the tests run
@rm -f $(COV_DIR)/*.gcda
@for u in $(COV_UNITS); do ./$$u >/dev/null || echo " (failed: $$u)"; done
@echo "running the suite against the coverage build..."
@for t in $(PY_TESTS); do \
- (cd tests && SL0PPTY_BIN=../$(COV_DIR)/sl0ppty timeout 300 python3 $$t >/dev/null 2>&1) \
+ (cd tests && SLOSH_BIN=../$(COV_DIR)/slosh timeout 300 python3 $$t >/dev/null 2>&1) \
|| echo " (failed: $$t)"; \
done
@for t in test_session.py live_m0.py live_input.py live_reload.py; do \
- (cd tests && SL0PPTY_BIN=../$(COV_DIR)/sl0ppty timeout 300 python3 $$t >/dev/null 2>&1) \
+ (cd tests && SLOSH_BIN=../$(COV_DIR)/slosh timeout 300 python3 $$t >/dev/null 2>&1) \
|| echo " (failed: $$t)"; \
done
@contrib/coverage
diff --git a/README.md b/README.md
index c732656..34212f0 100644
--- a/README.md
+++ b/README.md
@@ -1,4 +1,4 @@
-# sl0ppty
+# slosh
A terminal multiplexer — panes, tabs, sessions you can detach from — written in
C on top of [libghostty-vt](https://github.com/ghostty-org/ghostty).
@@ -32,9 +32,9 @@ make # about a second
## Run
```bash
-sl0ppty # attach to session "main", creating it if needed
-sl0ppty -s work # a named session
-sl0ppty ls # what is running
+slosh # attach to session "main", creating it if needed
+slosh -s work # a named session
+slosh ls # what is running
```
Sessions survive detaching, and your ssh connection dying. Then `C-a \` to
diff --git a/config/config.kdl b/config/config.kdl
index 878d97c..2bb356a 100644
--- a/config/config.kdl
+++ b/config/config.kdl
@@ -1,6 +1,6 @@
// This file is the *reasoning*: what each setting is for, what it cost to
// get right, and which ones are opinions. The values themselves come out of
-// the code -- `sl0ppty --dump-config` writes every knob with its default, and
+// the code -- `slosh --dump-config` writes every knob with its default, and
// `C-a e` seeds a missing config with exactly that.
//
// So if the two ever disagree, the dump is right and this file is stale;
@@ -22,17 +22,17 @@
// .so is picked up and a replaced one needs a new session
//
// A session started before this file existed still notices it appearing: the
-// watch is on the directory, and sl0ppty creates that directory at startup so
+// watch is on the directory, and slosh creates that directory at startup so
// there is always something to watch.
//
-// sl0ppty — every value here is also the compiled-in default, so this file is
+// slosh — every value here is also the compiled-in default, so this file is
// documentation as much as configuration. Copy it to
-// ~/.config/sl0ppty/config.kdl (or point $SL0PPTY_CONFIG at it) and edit.
+// ~/.config/slosh/config.kdl (or point $SLOSH_CONFIG at it) and edit.
//
// A broken file costs a warning on stderr and nothing else: the defaults
// stand. Saving this file re-reads it into every running session on its own;
-// `sl0ppty --no-reload` starts one that does not watch, and
-// `sl0ppty cmd '{"cmd":"reload"}'` asks for a re-read explicitly. And
+// `slosh --no-reload` starts one that does not watch, and
+// `slosh cmd '{"cmd":"reload"}'` asks for a re-read explicitly. And
// refuses a file it cannot parse rather than half-applying it.
// ── include ─────────────────────────────────────────────────────────────────
@@ -68,7 +68,7 @@
// complains about: an unknown shader, a binding that does not parse, an include
// that is not there. The file applied; one line of it did not; you get told.
//
-// `sl0ppty --check` says all of them at once, with a file and line each, and
+// `slosh --check` says all of them at once, with a file and line each, and
// exits non-zero if there were any. A session only has room for the first.
// ── geometry ────────────────────────────────────────────────────────────────
@@ -147,12 +147,12 @@ title_inset 2
hints true
// When there is no hint to show — which is most of the time, since a hint
-// needs the pointer to be on something — that space says which sl0ppty this
-// is: `sl0ppty 0.1.0+d9dee7f`. It reads as decoration and is not: a session
+// needs the pointer to be on something — that space says which slosh this
+// is: `slosh 0.1.0+d9dee7f`. It reads as decoration and is not: a session
// keeps the binary it started with, so after a rebuild the version on screen
-// is the one you are actually talking to, and `sl0ppty --version` is the one
+// is the one you are actually talking to, and `slosh --version` is the one
// on disk. When those disagree, that is the answer to whatever you were about
-// to debug. (contrib/sl0ppty-dev restarts into the new one.)
+// to debug. (contrib/slosh-dev restarts into the new one.)
//
// It gives way to a hint, and both give way to the ends of the line -- they
// are centred on the row and simply not drawn when that would overlap.
@@ -270,7 +270,7 @@ focus_follows_mouse true
//
// The way back, whatever a pane did to itself and whether or not this is still
// true afterwards: the `clear-shaders` action (bind it, or run it from the
-// palette), or `sl0ppty cmd '{"cmd":"clear-shaders","id":0}'`.
+// palette), or `slosh cmd '{"cmd":"clear-shaders","id":0}'`.
in_band_shaders false
// The floor below which a pane is not small but useless. A split that cannot
@@ -366,7 +366,7 @@ word_separators "\"'`()[]{}<>;,|"
modal_scrim 120
// Extra shaders can be loaded from shared libraries: any `*.so` in the
-// directory below that exports a sl0ppty shader plugin. Once loaded they are
+// directory below that exports a slosh shader plugin. Once loaded they are
// named here exactly like a built-in. Default: a `shaders` directory beside
// this file, so dropping the .so next to your config is the whole install.
//
@@ -379,7 +379,7 @@ modal_scrim 120
// *replacing* one needs a new session. Skeleton and Makefile:
// contrib/shader-plugin/
//
-// shader_dir "~/.config/sl0ppty/shaders"
+// shader_dir "~/.config/slosh/shaders"
// ── projects ────────────────────────────────────────────────────────────────
//
@@ -389,7 +389,7 @@ modal_scrim 120
// directory that *is* a project is never descended into, which is what keeps
// the scan off node_modules without a rule about node_modules.
//
-// A subdirectory is a project when it has a `sl0ppty.layout.kdl` saying what it
+// A subdirectory is a project when it has a `slosh.layout.kdl` saying what it
// needs -- or a `.git`, which is the project that has not said yet. Both,
// because a ~/dev of forty checkouts and three layout files would otherwise be
// a picker with three rows, and `C-a W` writes the missing file from whatever
@@ -406,11 +406,11 @@ modal_scrim 120
// guess about your stack from whatever config files it happens to contain. A
// relative `cwd=` in it binds to whichever project is being opened, not to the
// directory this file lives in, so one file is the shape you start every
-// checkout in -- and a project that grows its own `sl0ppty.layout.kdl` wins
+// checkout in -- and a project that grows its own `slosh.layout.kdl` wins
// over it, the way an included file is the base and the file including it wins.
//
// Unset, so a project with no layout is one pane running your shell in it:
-// project_layout "~/.config/sl0ppty/project.layout.kdl"
+// project_layout "~/.config/slosh/project.layout.kdl"
// ── shaders ─────────────────────────────────────────────────────────────────
//
@@ -775,7 +775,7 @@ theme {
// copied off C-a ? is a chord you can paste in here. Anything else is the
// character you press, shift included: "?" is shift+slash, "H" is shift+h.
//
-// `sl0ppty --check` reads this file and says what it could not honour.
+// `slosh --check` reads this file and says what it could not honour.
//
// Actions: split split-cols split-rows close-pane focus-left focus-right focus-up
// focus-down focus-next resize-left resize-right resize-up resize-down equalize
diff --git a/config/example.layout.kdl b/config/example.layout.kdl
index 559e191..8ab914d 100644
--- a/config/example.layout.kdl
+++ b/config/example.layout.kdl
@@ -1,14 +1,14 @@
-// A session described as a file: sl0ppty --layout project.layout.kdl
+// A session described as a file: slosh --layout project.layout.kdl
//
// Name them `*.layout.kdl`. The syntax is the same KDL subset the config uses --
// one parser reads both -- so the extension says how to read the file and the
// `.layout` says what is in it. Two documents sharing a syntax is only confusing
-// while nothing says which is which: hand this file to `sl0ppty --check` and it
+// while nothing says which is which: hand this file to `slosh --check` and it
// tells you it is a layout, and hand a config to `--layout` and it says that too.
//
// The same shape can be sent to a running session over the control socket:
-// sl0ppty cmd '{"cmd":"apply-layout","path":"/path/to/project.layout.kdl"}'
-// sl0ppty cmd '{"cmd":"apply-layout","kdl":"layout { tab name=\"x\" { pane } }"}'
+// slosh cmd '{"cmd":"apply-layout","path":"/path/to/project.layout.kdl"}'
+// slosh cmd '{"cmd":"apply-layout","kdl":"layout { tab name=\"x\" { pane } }"}'
// which is how an orchestrator adds one project tab at a time.
layout {
diff --git a/contrib/README.md b/contrib/README.md
index f6c45c3..c932199 100644
--- a/contrib/README.md
+++ b/contrib/README.md
@@ -17,8 +17,8 @@ different palette — there is a test that keeps them that way.
| `paper` | a light theme, for a light terminal |
| `mono` | no colour at all, only weight and brightness |
-To use one, put it in `~/.config/sl0ppty/config.kdl` (or point
-`$SL0PPTY_CONFIG` at it). A running session re-reads it the moment you save,
+To use one, put it in `~/.config/slosh/config.kdl` (or point
+`$SLOSH_CONFIG` at it). A running session re-reads it the moment you save,
so you can edit and watch.
## theme-tour
@@ -34,19 +34,19 @@ It works by writing the theme over the file the session was started with and
letting the config watcher notice, which is also a fair demonstration of the
watcher.
-## sl0ppty-dev
+## slosh-dev
-For working *on* sl0ppty: build a new binary and pick it up without losing
+For working *on* slosh: build a new binary and pick it up without losing
your screen.
```sh
-contrib/sl0ppty-dev # start, or reattach to, the dev session
-contrib/sl0ppty-dev restart # from inside it, after a build
+contrib/slosh-dev # start, or reattach to, the dev session
+contrib/slosh-dev restart # from inside it, after a build
```
A running session keeps the binary it started with — `reload` re-reads the
config, it cannot re-read the code — so a new build needs a new server. The
-only thing worth carrying across is the layout, and sl0ppty can write its own:
+only thing worth carrying across is the layout, and slosh can write its own:
`{"cmd":"dump-layout"}` is the inverse of `--layout`, so `restart` dumps,
quits, and the loop outside comes back with the same tabs, splits,
proportions, directories, and the same tab and pane focused.
@@ -68,11 +68,11 @@ Thirty-two ready-made shaders, one file each, generated from the presets in
previewed, and a second copy kept by hand would be a second copy kept badly.
`tests/test_shader_presets.py` fails if the two ever disagree.
-To use one, append it to `~/.config/sl0ppty/config.kdl`; a running session
+To use one, append it to `~/.config/slosh/config.kdl`; a running session
picks it up when you save.
```sh
-cat contrib/shaders/guides-torch.kdl >> ~/.config/sl0ppty/config.kdl
+cat contrib/shaders/guides-torch.kdl >> ~/.config/slosh/config.kdl
```
To look before choosing:
@@ -97,7 +97,7 @@ the cursor is, and standing still tells you nothing about a torch.
A skeleton for adding your own shaders as a shared library, with a Makefile
and two worked examples (`checker`, `pulse`). Build it, drop the `.so` in
-`~/.config/sl0ppty/shaders/`, and name it in your config like a built-in.
+`~/.config/slosh/shaders/`, and name it in your config like a built-in.
The only header a plugin needs is `src/shader_abi.h`. What a shader may and
may not do — and why a plugin is native code rather than a sandboxed one —
@@ -142,7 +142,7 @@ make coverage
```
Builds a second binary with gcc's `--coverage` into `build/cov`, runs every
-suite against it (`$SL0PPTY_BIN` is how the same tests drive a different
+suite against it (`$SLOSH_BIN` is how the same tests drive a different
build), and reads the counters back with gcov. Nothing is installed, the
normal zig build is untouched, and it takes about a minute.
@@ -157,7 +157,7 @@ are rather than about the code.
## the agent skill
-`.agents/skills/driving-sl0ppty/SKILL.md` is the control socket written as
+`.agents/skills/driving-slosh/SKILL.md` is the control socket written as
instructions rather than as a reference: which environment variables tell a
program in a pane which session it is in, why work belongs in a pane that was
*given* a command instead of typed into a shell, and that `purpose` is the handle
diff --git a/contrib/chrome/README.md b/contrib/chrome/README.md
index 8d029d6..0989033 100644
--- a/contrib/chrome/README.md
+++ b/contrib/chrome/README.md
@@ -1,10 +1,10 @@
# chrome presets
Colour passes over a pane's **frame** rather than its contents — `where="chrome"`
-— each in its own file, ready to paste into `~/.config/sl0ppty/config.kdl`.
+— each in its own file, ready to paste into `~/.config/slosh/config.kdl`.
```sh
-cat contrib/chrome/shine.kdl >> ~/.config/sl0ppty/config.kdl # then save
+cat contrib/chrome/shine.kdl >> ~/.config/slosh/config.kdl # then save
```
Hand-written, unlike [`contrib/shaders`](../shaders), which is generated from
diff --git a/contrib/chrome/bit-drift.kdl b/contrib/chrome/bit-drift.kdl
index 4c2d864..94d6ca0 100644
--- a/contrib/chrome/bit-drift.kdl
+++ b/contrib/chrome/bit-drift.kdl
@@ -1,7 +1,7 @@
// bit drift — chrome
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up when
-// you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane state
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
+// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/corner-glints.kdl b/contrib/chrome/corner-glints.kdl
index 799d58d..4af7e33 100644
--- a/contrib/chrome/corner-glints.kdl
+++ b/contrib/chrome/corner-glints.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/gradient.kdl b/contrib/chrome/gradient.kdl
index 16040b5..2dc3c4d 100644
--- a/contrib/chrome/gradient.kdl
+++ b/contrib/chrome/gradient.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/heartbeat.kdl b/contrib/chrome/heartbeat.kdl
index c080714..b8bada6 100644
--- a/contrib/chrome/heartbeat.kdl
+++ b/contrib/chrome/heartbeat.kdl
@@ -1,7 +1,7 @@
// heartbeat — chrome
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up when
-// you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane state
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
+// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/marching-ants.kdl b/contrib/chrome/marching-ants.kdl
index 6338afc..79bd3ae 100644
--- a/contrib/chrome/marching-ants.kdl
+++ b/contrib/chrome/marching-ants.kdl
@@ -1,7 +1,7 @@
// marching ants — chrome
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up when
-// you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane state
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
+// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/ripple.kdl b/contrib/chrome/ripple.kdl
index 527ca1e..e482630 100644
--- a/contrib/chrome/ripple.kdl
+++ b/contrib/chrome/ripple.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/shimmer.kdl b/contrib/chrome/shimmer.kdl
index 1e9e972..22d86c0 100644
--- a/contrib/chrome/shimmer.kdl
+++ b/contrib/chrome/shimmer.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/shine.kdl b/contrib/chrome/shine.kdl
index 335fb3d..73126e4 100644
--- a/contrib/chrome/shine.kdl
+++ b/contrib/chrome/shine.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/sine-comet.kdl b/contrib/chrome/sine-comet.kdl
index d5ee1fd..b06983b 100644
--- a/contrib/chrome/sine-comet.kdl
+++ b/contrib/chrome/sine-comet.kdl
@@ -1,7 +1,7 @@
// sine comet — chrome
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up when
-// you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane state
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
+// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/spinner.kdl b/contrib/chrome/spinner.kdl
index 8f5d187..e93096e 100644
--- a/contrib/chrome/spinner.kdl
+++ b/contrib/chrome/spinner.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/standing-wave.kdl b/contrib/chrome/standing-wave.kdl
index b1620bd..e0c50ea 100644
--- a/contrib/chrome/standing-wave.kdl
+++ b/contrib/chrome/standing-wave.kdl
@@ -1,7 +1,7 @@
// standing wave — chrome
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up when
-// you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane state
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
+// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/title-sheen.kdl b/contrib/chrome/title-sheen.kdl
index 5eabd0f..4910b7a 100644
--- a/contrib/chrome/title-sheen.kdl
+++ b/contrib/chrome/title-sheen.kdl
@@ -4,8 +4,8 @@
// contrib/shadertoy.html, and the toy previews a pane's *contents*. A frame is
// a different rect and the toy has no frame to show.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a pane
// state instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/chrome/xor-barcode.kdl b/contrib/chrome/xor-barcode.kdl
index a212888..6038fd7 100644
--- a/contrib/chrome/xor-barcode.kdl
+++ b/contrib/chrome/xor-barcode.kdl
@@ -1,7 +1,7 @@
// xor barcode — chrome
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up when
-// you save), or point $SL0PPTY_CONFIG at this file. To hang it off a pane state
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up when
+// you save), or point $SLOSH_CONFIG at this file. To hang it off a pane state
// instead of every pane, put the same pass inside one:
//
// states { bell { ... } }
diff --git a/contrib/coverage b/contrib/coverage
index d1dd8bc..c421a7c 100755
--- a/contrib/coverage
+++ b/contrib/coverage
@@ -1,10 +1,10 @@
#!/usr/bin/env python3
-"""How much of sl0ppty the test suite actually runs.
+"""How much of slosh the test suite actually runs.
make coverage
Builds a second binary with gcc's `--coverage`, points the suite at it with
-$SL0PPTY_BIN, and reads the counters back with gcov. Nothing is installed and
+$SLOSH_BIN, and reads the counters back with gcov. Nothing is installed and
nothing else changes: the normal build is still zig, and this one lives
entirely in build/cov.
@@ -62,7 +62,7 @@ def main():
if not rows:
print(
- "no counters: did the suite run against build/cov/sl0ppty?", file=sys.stderr
+ "no counters: did the suite run against build/cov/slosh?", file=sys.stderr
)
return 1
diff --git a/contrib/docs.css b/contrib/docs.css
index 8b2268c..1fc8bb6 100644
--- a/contrib/docs.css
+++ b/contrib/docs.css
@@ -1,4 +1,4 @@
-/* sl0ppty docs. One file, no build step, no framework.
+/* slosh docs. One file, no build step, no framework.
*
* The colours are the session's own default theme, so the docs look like the
* thing they document. Dark by default; the light variant follows the reader's
diff --git a/contrib/gen-docs b/contrib/gen-docs
index b59b5f9..fe5e568 100755
--- a/contrib/gen-docs
+++ b/contrib/gen-docs
@@ -2,7 +2,7 @@
"""Render docs/ into a static site.
contrib/gen-docs [outdir] default: build/docs
- SL0PPTY_DOCS=dir contrib/gen-docs out ...from another docs tree
+ SLOSH_DOCS=dir contrib/gen-docs out ...from another docs tree
No dependencies and no toolchain: this is one file of stdlib Python and one
stylesheet, for the same reason src/kdl.c is a hand-rolled KDL subset rather
@@ -26,9 +26,9 @@ import sys
HERE = os.path.dirname(os.path.abspath(__file__))
ROOT = os.path.dirname(HERE)
-# $SL0PPTY_DOCS points it at another tree, which is how the tests drive it over
+# $SLOSH_DOCS points it at another tree, which is how the tests drive it over
# fixtures -- including the trees that are supposed to be refused.
-DOCS = os.environ.get("SL0PPTY_DOCS") or os.path.join(ROOT, "docs")
+DOCS = os.environ.get("SLOSH_DOCS") or os.path.join(ROOT, "docs")
# ---- the markdown subset --------------------------------------------------
@@ -218,7 +218,7 @@ def render(md):
i += 1
close(stack)
- return "\n".join(out), title or "sl0ppty", toc
+ return "\n".join(out), title or "slosh", toc
# ---- the site -------------------------------------------------------------
@@ -241,7 +241,7 @@ def read_nav(path):
def sidebar(sections, pages, current):
- out = ['<nav class="side"><a class="brand" href="index.html">sl0ppty</a>']
+ out = ['<nav class="side"><a class="brand" href="index.html">slosh</a>']
for name, files in sections:
out.append("<h6>%s</h6><ul>" % html.escape(name))
for f in files:
@@ -280,7 +280,7 @@ SHELL = """<!doctype html>
</head><body>
<input type="checkbox" id="menu" hidden>
<header><label for="menu" class="burger" aria-label="Menu">≡</label>
-<a href="index.html">sl0ppty</a><span class="crumb">{crumb}</span></header>
+<a href="index.html">slosh</a><span class="crumb">{crumb}</span></header>
<div class="wrap">
{sidebar}
<main>
@@ -334,7 +334,7 @@ def build(outdir):
)
section = next(name for name, files in sections if f in files)
out = SHELL.format(
- title=html.escape(p["title"] + (" — sl0ppty" if f != "index.md" else "")),
+ title=html.escape(p["title"] + (" — slosh" if f != "index.md" else "")),
crumb=html.escape(section),
sidebar=sidebar(sections, pages, f),
body=p["body"],
diff --git a/contrib/gen-shaders b/contrib/gen-shaders
index 0ec27c3..e07c8a4 100755
--- a/contrib/gen-shaders
+++ b/contrib/gen-shaders
@@ -37,8 +37,8 @@ function render(group, name, chain) {
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shader-plugin/Makefile b/contrib/shader-plugin/Makefile
index 94734e5..1240c85 100644
--- a/contrib/shader-plugin/Makefile
+++ b/contrib/shader-plugin/Makefile
@@ -1,25 +1,25 @@
-# Build a sl0ppty shader plugin.
+# Build a slosh shader plugin.
#
# The only thing a plugin needs is src/shader_abi.h. Any C compiler will do —
# zig is used here because the project already depends on it, not because it
# has to be. Out of tree, copy shader_abi.h next to your source and drop the
# -I below.
-SL0PPTY ?= ../..
+SLOSH ?= ../..
ZIG ?= $(HOME)/zig-0.16.0/zig
CC ?= $(ZIG) cc
-CFLAGS := -std=c23 -O2 -Wall -Wextra -fPIC -I$(SL0PPTY)/src
-PREFIX ?= $(HOME)/.config/sl0ppty/shaders
+CFLAGS := -std=c23 -O2 -Wall -Wextra -fPIC -I$(SLOSH)/src
+PREFIX ?= $(HOME)/.config/slosh/shaders
.PHONY: all install clean
all: example.so ## build the plugin
-example.so: example.c $(SL0PPTY)/src/shader_abi.h
+example.so: example.c $(SLOSH)/src/shader_abi.h
$(CC) $(CFLAGS) -shared $< -o $@
-install: example.so ## copy it where sl0ppty looks
+install: example.so ## copy it where slosh looks
@mkdir -p $(PREFIX)
cp example.so $(PREFIX)/
@echo "installed to $(PREFIX)/example.so — start a new session to load it"
diff --git a/contrib/shader-plugin/README.md b/contrib/shader-plugin/README.md
index 4bcd850..6c5150a 100644
--- a/contrib/shader-plugin/README.md
+++ b/contrib/shader-plugin/README.md
@@ -2,11 +2,11 @@
A shader is a C function from one cell to that cell's colours. The built-in
ones live in the binary; you can add your own as a shared library, without
-rebuilding sl0ppty.
+rebuilding slosh.
```bash
make # builds example.so
-make install # copies it to ~/.config/sl0ppty/shaders/
+make install # copies it to ~/.config/slosh/shaders/
```
Then name it in your config exactly as you would a built-in:
@@ -31,7 +31,7 @@ a plugin, restart the session.
## Writing one
Everything you need is in [`src/shader_abi.h`](../../src/shader_abi.h) — one
-header, no libghostty-vt, no other sl0ppty types. `example.c` is a working
+header, no libghostty-vt, no other slosh types. `example.c` is a working
plugin with two effects and comments about what each one demonstrates.
The shape is:
@@ -47,7 +47,7 @@ static void sh_mine(const shader_t *sh, const shade_ctx_t *ctx, cell_t *c) {
}
static const shader_def_t SHADERS[] = {{"mine", sh_mine}};
-SL0PPTY_SHADER_PLUGIN("my-shaders", SHADERS)
+SLOSH_SHADER_PLUGIN("my-shaders", SHADERS)
```
Three rules, which are also why shaders can be this simple:
@@ -92,7 +92,7 @@ under a name of its own.
## Compatibility
The plugin declares which ABI it was built against, and the sizes of the three
-structs it shares with sl0ppty. A mismatch is refused at load with a line on
+structs it shares with slosh. A mismatch is refused at load with a line on
stderr rather than trusted into a crash, so a plugin left over from an older
version fails safely and everything else still loads.
diff --git a/contrib/shader-plugin/example.c b/contrib/shader-plugin/example.c
index 9bb257e..feb4560 100644
--- a/contrib/shader-plugin/example.c
+++ b/contrib/shader-plugin/example.c
@@ -1,10 +1,10 @@
-/* An example sl0ppty shader plugin.
+/* An example slosh shader plugin.
*
* Two effects, chosen to show the whole of what a shader is given: where the
* cell is, how big the pane is, where the cursor is, what time it is, and the
* three parameters the config can set (`color`, `amount`, and one number).
*
- * Build it with `make`, drop the .so in ~/.config/sl0ppty/shaders/, and name
+ * Build it with `make`, drop the .so in ~/.config/slosh/shaders/, and name
* it in your config exactly like a built-in:
*
* shaders {
@@ -79,4 +79,4 @@ static const shader_def_t SHADERS[] = {
{"pulse", sh_pulse},
};
-SL0PPTY_SHADER_PLUGIN("example", SHADERS)
+SLOSH_SHADER_PLUGIN("example", SHADERS)
diff --git a/contrib/shader-repl b/contrib/shader-repl
index 6bb3998..72df0be 100755
--- a/contrib/shader-repl
+++ b/contrib/shader-repl
@@ -58,7 +58,7 @@ Commands:
The prompt is readline's, so it has the editing and history you already know --
up/down through what you tried, ctrl-r to search it, and history kept across runs
-in `$XDG_DATA_HOME/sl0ppty/shader-repl.history`. Tab completes the commands, the
+in `$XDG_DATA_HOME/slosh/shader-repl.history`. Tab completes the commands, the
shader names, the property keys, the expression language's variables, constants and
functions, and filenames after `:load`.
@@ -130,7 +130,7 @@ FUNCS = ["min(", "max(", "abs(", "clamp(", "dist(", "sin(", "cos("]
HISTORY = os.path.join(
os.environ.get("XDG_DATA_HOME") or os.path.expanduser("~/.local/share"),
- "sl0ppty",
+ "slosh",
"shader-repl.history",
)
@@ -235,7 +235,7 @@ def answer_of(fd, raw):
# Whatever half-arrived is not a line anybody typed: drop it, or those
# escape bytes become the front of the next thing readline reads.
termios.tcflush(fd, termios.TCIFLUSH)
- return ("no answer -- is this pane inside sl0ppty?", False)
+ return ("no answer -- is this pane inside slosh?", False)
if raw == "ok" or raw.startswith("ok;"):
_, _, detail = raw.partition(";")
return (detail or "ok", True)
@@ -254,7 +254,7 @@ PRESET_DIRS = [
def resolve(arg):
- """A path, or the name of a preset that ships with sl0ppty.
+ """A path, or the name of a preset that ships with slosh.
`:load contrib/chrome/sine-comet.kdl` and `:load sine-comet` are the same
thing, the second one from any directory: the preset folders sit next to this
diff --git a/contrib/shader-tour b/contrib/shader-tour
index e0678b9..d8ebcba 100755
--- a/contrib/shader-tour
+++ b/contrib/shader-tour
@@ -13,9 +13,9 @@
# `curx`/`cury` is where the cursor is, and standing still tells you nothing.
set -e
here=$(cd "$(dirname "$0")" && pwd)
-bin="$here/../build/sl0ppty"
+bin="$here/../build/slosh"
SESSION=${SESSION:-shaders}
-CONF=${SL0PPTY_CONFIG:-/tmp/sl0ppty-shader-tour.kdl}
+CONF=${SLOSH_CONFIG:-/tmp/slosh-shader-tour.kdl}
DWELL=${DWELL:-5}
# A name can be the whole slug (guides-torch), or just the interesting half
@@ -48,7 +48,7 @@ ensure_session() {
"$bin" ls 2>/dev/null | grep -q "^$SESSION " && return 0
cp "$here/themes/sl0p.kdl" "$CONF"
echo "starting a session called $SESSION..."
- SL0PPTY_CONFIG="$CONF" "$bin" -s "$SESSION" -- "${SHELL:-/bin/sh}" &
+ SLOSH_CONFIG="$CONF" "$bin" -s "$SESSION" -- "${SHELL:-/bin/sh}" &
sleep 1
}
diff --git a/contrib/shaders/built-ins-checker.kdl b/contrib/shaders/built-ins-checker.kdl
index e689305..70faddf 100644
--- a/contrib/shaders/built-ins-checker.kdl
+++ b/contrib/shaders/built-ins-checker.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/built-ins-gradient.kdl b/contrib/shaders/built-ins-gradient.kdl
index 69f977f..05050d9 100644
--- a/contrib/shaders/built-ins-gradient.kdl
+++ b/contrib/shaders/built-ins-gradient.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/built-ins-ruler.kdl b/contrib/shaders/built-ins-ruler.kdl
index e4643aa..757fd45 100644
--- a/contrib/shaders/built-ins-ruler.kdl
+++ b/contrib/shaders/built-ins-ruler.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/built-ins-scanlines.kdl b/contrib/shaders/built-ins-scanlines.kdl
index 6d25c05..99d735b 100644
--- a/contrib/shaders/built-ins-scanlines.kdl
+++ b/contrib/shaders/built-ins-scanlines.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/built-ins-spotlight.kdl b/contrib/shaders/built-ins-spotlight.kdl
index 2635871..ad8df30 100644
--- a/contrib/shaders/built-ins-spotlight.kdl
+++ b/contrib/shaders/built-ins-spotlight.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/built-ins-vignette.kdl b/contrib/shaders/built-ins-vignette.kdl
index 138bd84..68fe0da 100644
--- a/contrib/shaders/built-ins-vignette.kdl
+++ b/contrib/shaders/built-ins-vignette.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/built-ins-zebra.kdl b/contrib/shaders/built-ins-zebra.kdl
index 852e66a..85c4293 100644
--- a/contrib/shaders/built-ins-zebra.kdl
+++ b/contrib/shaders/built-ins-zebra.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/crt-amber.kdl b/contrib/shaders/crt-amber.kdl
index 746aa4e..03606d6 100644
--- a/contrib/shaders/crt-amber.kdl
+++ b/contrib/shaders/crt-amber.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/crt-film.kdl b/contrib/shaders/crt-film.kdl
index 19b295f..1fee220 100644
--- a/contrib/shaders/crt-film.kdl
+++ b/contrib/shaders/crt-film.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/crt-interlace.kdl b/contrib/shaders/crt-interlace.kdl
index 18bd1c5..ed2dede 100644
--- a/contrib/shaders/crt-interlace.kdl
+++ b/contrib/shaders/crt-interlace.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/crt-phosphor.kdl b/contrib/shaders/crt-phosphor.kdl
index 7cdb397..a76a295 100644
--- a/contrib/shaders/crt-phosphor.kdl
+++ b/contrib/shaders/crt-phosphor.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/crt-rolling-bar.kdl b/contrib/shaders/crt-rolling-bar.kdl
index b9ce7ef..400337f 100644
--- a/contrib/shaders/crt-rolling-bar.kdl
+++ b/contrib/shaders/crt-rolling-bar.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-crosshair.kdl b/contrib/shaders/guides-crosshair.kdl
index 7c8ab09..c6476c6 100644
--- a/contrib/shaders/guides-crosshair.kdl
+++ b/contrib/shaders/guides-crosshair.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-cursor-line.kdl b/contrib/shaders/guides-cursor-line.kdl
index b3cb744..2f812fd 100644
--- a/contrib/shaders/guides-cursor-line.kdl
+++ b/contrib/shaders/guides-cursor-line.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-edge-falloff.kdl b/contrib/shaders/guides-edge-falloff.kdl
index 865a8f5..61c9939 100644
--- a/contrib/shaders/guides-edge-falloff.kdl
+++ b/contrib/shaders/guides-edge-falloff.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-focus-mode.kdl b/contrib/shaders/guides-focus-mode.kdl
index 2acf5ac..1120d2b 100644
--- a/contrib/shaders/guides-focus-mode.kdl
+++ b/contrib/shaders/guides-focus-mode.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-indent-guides.kdl b/contrib/shaders/guides-indent-guides.kdl
index 210b495..054b7da 100644
--- a/contrib/shaders/guides-indent-guides.kdl
+++ b/contrib/shaders/guides-indent-guides.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-right-margin.kdl b/contrib/shaders/guides-right-margin.kdl
index 3d6a96d..5035827 100644
--- a/contrib/shaders/guides-right-margin.kdl
+++ b/contrib/shaders/guides-right-margin.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-thirds.kdl b/contrib/shaders/guides-thirds.kdl
index 4c099cd..317a243 100644
--- a/contrib/shaders/guides-thirds.kdl
+++ b/contrib/shaders/guides-thirds.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/guides-torch.kdl b/contrib/shaders/guides-torch.kdl
index 41e1f3c..f5c737c 100644
--- a/contrib/shaders/guides-torch.kdl
+++ b/contrib/shaders/guides-torch.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-barber-pole.kdl b/contrib/shaders/motion-barber-pole.kdl
index 21c01ba..0ad87f5 100644
--- a/contrib/shaders/motion-barber-pole.kdl
+++ b/contrib/shaders/motion-barber-pole.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-matrix-rain.kdl b/contrib/shaders/motion-matrix-rain.kdl
index cb46843..c8a7e44 100644
--- a/contrib/shaders/motion-matrix-rain.kdl
+++ b/contrib/shaders/motion-matrix-rain.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-plasma.kdl b/contrib/shaders/motion-plasma.kdl
index 6689753..920f170 100644
--- a/contrib/shaders/motion-plasma.kdl
+++ b/contrib/shaders/motion-plasma.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-pulse.kdl b/contrib/shaders/motion-pulse.kdl
index 1646fe5..3d11aec 100644
--- a/contrib/shaders/motion-pulse.kdl
+++ b/contrib/shaders/motion-pulse.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-ripples.kdl b/contrib/shaders/motion-ripples.kdl
index 551a888..7761006 100644
--- a/contrib/shaders/motion-ripples.kdl
+++ b/contrib/shaders/motion-ripples.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-sonar.kdl b/contrib/shaders/motion-sonar.kdl
index d62ef09..5fcbf08 100644
--- a/contrib/shaders/motion-sonar.kdl
+++ b/contrib/shaders/motion-sonar.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-sweep.kdl b/contrib/shaders/motion-sweep.kdl
index bb6eef3..6aa8b8c 100644
--- a/contrib/shaders/motion-sweep.kdl
+++ b/contrib/shaders/motion-sweep.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/motion-typewriter.kdl b/contrib/shaders/motion-typewriter.kdl
index e8ce5c0..d983e20 100644
--- a/contrib/shaders/motion-typewriter.kdl
+++ b/contrib/shaders/motion-typewriter.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/pane-states-dead.kdl b/contrib/shaders/pane-states-dead.kdl
index d2ab61c..877dd74 100644
--- a/contrib/shaders/pane-states-dead.kdl
+++ b/contrib/shaders/pane-states-dead.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/pane-states-scrolled.kdl b/contrib/shaders/pane-states-scrolled.kdl
index 6c8699f..1b6f3b0 100644
--- a/contrib/shaders/pane-states-scrolled.kdl
+++ b/contrib/shaders/pane-states-scrolled.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/pane-states-suspended.kdl b/contrib/shaders/pane-states-suspended.kdl
index 9cc6cb3..ad33150 100644
--- a/contrib/shaders/pane-states-suspended.kdl
+++ b/contrib/shaders/pane-states-suspended.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shaders/pane-states-unfocused.kdl b/contrib/shaders/pane-states-unfocused.kdl
index 746ac08..685c624 100644
--- a/contrib/shaders/pane-states-unfocused.kdl
+++ b/contrib/shaders/pane-states-unfocused.kdl
@@ -3,8 +3,8 @@
// Generated from contrib/shadertoy.html by contrib/gen-shaders; edit the
// preset there, where you can see what it does, and run that again.
//
-// Drop this into ~/.config/sl0ppty/config.kdl (a running session picks it up
-// when you save), or point $SL0PPTY_CONFIG at this file. To hang it off a
+// Drop this into ~/.config/slosh/config.kdl (a running session picks it up
+// when you save), or point $SLOSH_CONFIG at this file. To hang it off a
// pane state instead of every pane, put the same passes inside one:
//
// states { unfocused { ... } }
diff --git a/contrib/shadertoy.html b/contrib/shadertoy.html
index b1c9614..10f6f81 100644
--- a/contrib/shadertoy.html
+++ b/contrib/shadertoy.html
@@ -1,9 +1,9 @@
<!doctype html>
<!--
- sl0ppty shadertoy — write a shader expression, watch it happen.
+ slosh shadertoy — write a shader expression, watch it happen.
One file, no build, no network: open it with a browser and it works. The
- expression language is the one sl0ppty compiles (src/expr.c), reimplemented
+ expression language is the one slosh compiles (src/expr.c), reimplemented
here in JavaScript, so what you see is what your config will do. That
duplication is the obvious hazard, so tests/test_shadertoy.py runs the same
expressions through both and fails if they ever disagree.
@@ -14,7 +14,7 @@
<html lang="en">
<head>
<meta charset="utf-8">
-<title>sl0ppty shadertoy</title>
+<title>slosh shadertoy</title>
<style>
:root {
--bg: #0d0d10; --panel: #16161b; --line: #2a2a32;
@@ -82,7 +82,7 @@
<body>
<div id="left">
- <h1>sl0ppty <span>shadertoy</span></h1>
+ <h1>slosh <span>shadertoy</span></h1>
<p class="sub">A shader's strength is an expression, evaluated for every cell.</p>
<h2>presets</h2>
@@ -393,14 +393,14 @@ const SAMPLE = [
["#e8e8ea", " }"],
["#e8e8ea", "}"],
["", ""],
- ["#7a7a86", "$ sl0ppty -s work"],
- ["#b5bd68", "user@clank ~/dev/sl0ppty master ❯ make test"],
+ ["#7a7a86", "$ slosh -s work"],
+ ["#b5bd68", "user@clank ~/dev/slosh master ❯ make test"],
["#7fd67f", " ok test_shaders.py 48 checks"],
["#7fd67f", " ok test_shader_expr.py 11 checks"],
["#7fd67f", " ok test_graphics.py 33 checks"],
["#e8e8ea", " all green"],
["", ""],
- ["#b5bd68", "user@clank ~/dev/sl0ppty master ❯ "],
+ ["#b5bd68", "user@clank ~/dev/slosh master ❯ "],
];
const hex2rgb = (h) => [parseInt(h.slice(1, 3), 16), parseInt(h.slice(3, 5), 16),
@@ -585,7 +585,7 @@ function refresh() {
const names = Object.entries(DEP)
.filter(([, bit]) => prog.deps & bit)
.map(([n]) => n.toLowerCase());
- /* The same classification sl0ppty makes, and for the same reason:
+ /* The same classification slosh makes, and for the same reason:
* anything that does not read the clock is worked out once per cell
* and reused. */
const cacheable = !(prog.deps & DEP.TIME);
diff --git a/contrib/sl0ppty-dev b/contrib/slosh-dev
index fac1aa1..aac04f4 100755
--- a/contrib/sl0ppty-dev
+++ b/contrib/slosh-dev
@@ -1,14 +1,14 @@
#!/bin/sh
-# Run sl0ppty the way you want it while you are *working on* sl0ppty: build a
+# Run slosh the way you want it while you are *working on* slosh: build a
# new binary, and pick it up without losing your screen.
#
-# contrib/sl0ppty-dev start (or reattach to) the dev session
-# contrib/sl0ppty-dev restart from inside it: come back on the new build
-# SESSION=work contrib/sl0ppty-dev a different session name
+# contrib/slosh-dev start (or reattach to) the dev session
+# contrib/slosh-dev restart from inside it: come back on the new build
+# SESSION=work contrib/slosh-dev a different session name
#
# A running session keeps the binary it started with -- `reload` re-reads the
# config, it cannot re-read the code -- so a new build needs a new server. The
-# only thing worth saving across that is the layout, and sl0ppty can write its
+# only thing worth saving across that is the layout, and slosh can write its
# own: `dump-layout` is the inverse of `--layout`.
#
# So this is a loop. It attaches; when the session ends *because you asked it
@@ -20,9 +20,9 @@
set -e
here=$(cd "$(dirname "$0")" && pwd)
-bin="$here/../build/sl0ppty"
+bin="$here/../build/slosh"
SESSION=${SESSION:-dev}
-state="${XDG_RUNTIME_DIR:-/tmp}/sl0ppty-dev-$SESSION"
+state="${XDG_RUNTIME_DIR:-/tmp}/slosh-dev-$SESSION"
layout="$state/session.layout.kdl"
flag="$state/restart"
mkdir -p "$state"
@@ -31,11 +31,11 @@ mkdir -p "$state"
# moment the session ends, so does the shell it was typed in. It leaves the
# layout and a note, and the loop below -- which is outside -- picks both up.
if [ "$1" = "restart" ]; then
- [ -n "$SL0PPTY" ] || { echo "sl0ppty-dev restart: run this inside the session"; exit 1; }
+ [ -n "$SLOSH" ] || { echo "slosh-dev restart: run this inside the session"; exit 1; }
"$bin" -s "$SESSION" cmd '{"cmd":"dump-layout"}' \
| sed -n 's/.*"kdl":"\(.*\)"}/\1/p' \
| sed -e 's/\\n/\n/g' -e 's/\\"/"/g' -e 's/\\\\/\\/g' > "$layout"
- [ -s "$layout" ] || { echo "sl0ppty-dev restart: could not dump the layout"; exit 1; }
+ [ -s "$layout" ] || { echo "slosh-dev restart: could not dump the layout"; exit 1; }
: > "$flag"
"$bin" -s "$SESSION" cmd '{"cmd":"quit"}' >/dev/null
exit 0
diff --git a/contrib/theme-tour b/contrib/theme-tour
index f8775b6..d816cfe 100755
--- a/contrib/theme-tour
+++ b/contrib/theme-tour
@@ -10,9 +10,9 @@
# the watcher.
set -e
here=$(cd "$(dirname "$0")" && pwd)
-bin="$here/../build/sl0ppty"
+bin="$here/../build/slosh"
SESSION=${SESSION:-themes}
-CONF=${SL0PPTY_CONFIG:-/tmp/sl0ppty-theme-tour.kdl}
+CONF=${SLOSH_CONFIG:-/tmp/slosh-theme-tour.kdl}
DWELL=${DWELL:-4}
apply() {
@@ -29,7 +29,7 @@ fi
if ! "$bin" ls 2>/dev/null | grep -q "^$SESSION "; then
cp "$here/themes/sl0p.kdl" "$CONF"
echo "starting a session called $SESSION..."
- SL0PPTY_CONFIG="$CONF" "$bin" -s "$SESSION" -- "${SHELL:-/bin/sh}" &
+ SLOSH_CONFIG="$CONF" "$bin" -s "$SESSION" -- "${SHELL:-/bin/sh}" &
sleep 1
fi
diff --git a/contrib/themes/amber.kdl b/contrib/themes/amber.kdl
index 1f9b7d4..17446e2 100644
--- a/contrib/themes/amber.kdl
+++ b/contrib/themes/amber.kdl
@@ -1,6 +1,6 @@
// amber -- the other CRT, for people who found green loud
//
-// Drop into ~/.config/sl0ppty/config.kdl, or point $SL0PPTY_CONFIG at a file
+// Drop into ~/.config/slosh/config.kdl, or point $SLOSH_CONFIG at a file
// that contains it. A running session re-reads it the moment you save.
theme {
// what a shader takes "terminal default" to mean
diff --git a/contrib/themes/mono.kdl b/contrib/themes/mono.kdl
index 28469cd..01b1ead 100644
--- a/contrib/themes/mono.kdl
+++ b/contrib/themes/mono.kdl
@@ -1,6 +1,6 @@
// mono -- no colour at all, only weight and brightness
//
-// Drop into ~/.config/sl0ppty/config.kdl, or point $SL0PPTY_CONFIG at a file
+// Drop into ~/.config/slosh/config.kdl, or point $SLOSH_CONFIG at a file
// that contains it. A running session re-reads it the moment you save.
theme {
// what a shader takes "terminal default" to mean
diff --git a/contrib/themes/paper.kdl b/contrib/themes/paper.kdl
index 82fc5b3..4b71c26 100644
--- a/contrib/themes/paper.kdl
+++ b/contrib/themes/paper.kdl
@@ -1,6 +1,6 @@
// paper -- a light theme, for a light terminal
//
-// Drop into ~/.config/sl0ppty/config.kdl, or point $SL0PPTY_CONFIG at a file
+// Drop into ~/.config/slosh/config.kdl, or point $SLOSH_CONFIG at a file
// that contains it. A running session re-reads it the moment you save.
theme {
// what a shader takes "terminal default" to mean
diff --git a/contrib/themes/phosphor.kdl b/contrib/themes/phosphor.kdl
index e992dfb..ebe18d2 100644
--- a/contrib/themes/phosphor.kdl
+++ b/contrib/themes/phosphor.kdl
@@ -1,6 +1,6 @@
// phosphor -- a green CRT that never quite went away
//
-// Drop into ~/.config/sl0ppty/config.kdl, or point $SL0PPTY_CONFIG at a file
+// Drop into ~/.config/slosh/config.kdl, or point $SLOSH_CONFIG at a file
// that contains it. A running session re-reads it the moment you save.
theme {
// what a shader takes "terminal default" to mean
diff --git a/contrib/themes/sl0p.kdl b/contrib/themes/sl0p.kdl
index 304f21a..cc13f89 100644
--- a/contrib/themes/sl0p.kdl
+++ b/contrib/themes/sl0p.kdl
@@ -1,6 +1,6 @@
// sl0p -- the default: hot pink on near-black
//
-// Drop into ~/.config/sl0ppty/config.kdl, or point $SL0PPTY_CONFIG at a file
+// Drop into ~/.config/slosh/config.kdl, or point $SLOSH_CONFIG at a file
// that contains it. A running session re-reads it the moment you save.
theme {
// what a shader takes "terminal default" to mean
diff --git a/contrib/themes/slate.kdl b/contrib/themes/slate.kdl
index 9e19792..d3c753b 100644
--- a/contrib/themes/slate.kdl
+++ b/contrib/themes/slate.kdl
@@ -1,6 +1,6 @@
// slate -- muted blues, for looking at all day
//
-// Drop into ~/.config/sl0ppty/config.kdl, or point $SL0PPTY_CONFIG at a file
+// Drop into ~/.config/slosh/config.kdl, or point $SLOSH_CONFIG at a file
// that contains it. A running session re-reads it the moment you save.
theme {
// what a shader takes "terminal default" to mean
diff --git a/docs/config.md b/docs/config.md
index db9da89..c9578ac 100644
--- a/docs/config.md
+++ b/docs/config.md
@@ -3,8 +3,8 @@
One file, in [KDL](https://kdl.dev):
```
-$SL0PPTY_CONFIG, else $XDG_CONFIG_HOME/sl0ppty/config.kdl, else
-~/.config/sl0ppty/config.kdl
+$SLOSH_CONFIG, else $XDG_CONFIG_HOME/slosh/config.kdl, else
+~/.config/slosh/config.kdl
```
`C-a e` opens it in a pane, writing a starting file first if you have none.
@@ -22,11 +22,11 @@ plugin that replaced one already loaded needs a new session.
## Two files worth knowing
-- **`sl0ppty --dump-config`** writes every setting with its *default* value —
+- **`slosh --dump-config`** writes every setting with its *default* value —
not the value your config gives it. It is generated from the code, so it
cannot drift, and it is a supported way to start a config:
- `sl0ppty --dump-config > ~/.config/sl0ppty/config.kdl`. To see what your own
- file does, `sl0ppty --check` reads it and reports what it understood.
+ `slosh --dump-config > ~/.config/slosh/config.kdl`. To see what your own
+ file does, `slosh --check` reads it and reports what it understood.
- **`config/config.kdl`**
in the source tree is the same list with the *reasoning* attached — what each
setting is for, what it cost to get right, and which ones are opinions. When
@@ -35,21 +35,21 @@ plugin that replaced one already loaded needs a new session.
## Checking one
```bash
-$ sl0ppty --check # the config a session would read
-$ sl0ppty --check themes/mine.kdl # or one you have not installed yet
+$ slosh --check # the config a session would read
+$ slosh --check themes/mine.kdl # or one you have not installed yet
```
Every problem it found, one per line, with the file and line it happened at —
including a setting it does not know:
```
- cannot open /home/you/.config/sl0ppty/themes/nope.kdl
+ cannot open /home/you/.config/slosh/themes/nope.kdl
config.kdl:2: bad prefix: ctrl+nope
config.kdl:3: bad key: wobble
config.kdl:5: padding takes 1, 2 or 4 values (all, vertical horizontal, or top right bottom left), not 3
config.kdl:6: unknown setting: wobble
themes/mine.kdl:7: unknown shader: bloom
-~/.config/sl0ppty/config.kdl: 6 problems
+~/.config/slosh/config.kdl: 6 problems
```
The problems go to stderr and the summary with them. It exits 1 when it has
@@ -99,7 +99,7 @@ Six ready-made themes are in
own two lines on top:
```kdl
-include "~/.config/sl0ppty/themes/phosphor.kdl"
+include "~/.config/slosh/themes/phosphor.kdl"
theme { frame_focus "#00ff88" } // ...but that one colour is mine
```
diff --git a/docs/design.md b/docs/design.md
index 7da7d60..ce749d2 100644
--- a/docs/design.md
+++ b/docs/design.md
@@ -23,7 +23,7 @@ special case of anything.
## It runs headless
-`sl0ppty --script` is the whole thing without a terminal: commands in, the
+`slosh --script` is the whole thing without a terminal: commands in, the
composited screen out as JSON. The interactive client and the test suite drive
the same object through the same commands, so there is exactly one implementation
of what a key does.
diff --git a/docs/index.md b/docs/index.md
index ebe873d..4997d09 100644
--- a/docs/index.md
+++ b/docs/index.md
@@ -1,4 +1,4 @@
-# sl0ppty
+# slosh
A terminal multiplexer — panes, tabs, sessions you can detach from — written in
C on top of [libghostty-vt](https://github.com/ghostty-org/ghostty).
@@ -33,9 +33,9 @@ make test # optional: the whole suite, about thirteen seconds
## Run
```bash
-sl0ppty # attach to session "main", creating it if needed
-sl0ppty -s work # a named session
-sl0ppty ls # what is running
+slosh # attach to session "main", creating it if needed
+slosh -s work # a named session
+slosh ls # what is running
```
Sessions keep running when you detach, or when your terminal or ssh connection
diff --git a/docs/keys.md b/docs/keys.md
index a8328b7..fb58532 100644
--- a/docs/keys.md
+++ b/docs/keys.md
@@ -88,7 +88,7 @@ carry their own shift: `"?"` is `"shift+slash"`, `"H"` is `"shift+h"`, `"|"` is
encodings, because whether your terminal reports `?` with a shift modifier or as
a bare byte is up to your terminal and not to what you meant.
-`sl0ppty --check` reads a config and says what it could not honour, one problem
+`slosh --check` reads a config and says what it could not honour, one problem
per line with a file and a line number. Worth running after editing bindings by
hand.
diff --git a/docs/layouts.md b/docs/layouts.md
index 31ee30c..64d0c1f 100644
--- a/docs/layouts.md
+++ b/docs/layouts.md
@@ -16,7 +16,7 @@ layout {
```
```bash
-sl0ppty --layout project.layout.kdl
+slosh --layout project.layout.kdl
```
## What to call them
@@ -28,7 +28,7 @@ Calling it something else would trade one wrong signal for another: it *is*
KDL, and an editor that highlights KDL is worth keeping.
A filename cannot enforce anything, so **the document decides which schema it is
-held to, not the flag that read it**. `sl0ppty --check` reads what is in front of
+held to, not the flag that read it**. `slosh --check` reads what is in front of
it: a file with `layout` or `tab` at the top of it is checked as a layout, and a
config handed to the same flag is still checked as a config. A file too broken to
parse at all is judged by its name, because by then there is nothing else left to
@@ -38,7 +38,7 @@ layout, not a config` — replied to a question about a file with the name of
another flag.
```
-$ sl0ppty --check project.layout.kdl
+$ slosh --check project.layout.kdl
project.layout.kdl: ok, a layout
```
@@ -49,7 +49,7 @@ summary, and exits 1 — the shape [checking a config](config.md#checking-one)
already has, so one editor compile step and one pre-commit hook read both:
```
-$ sl0ppty --check broken.layout.kdl
+$ slosh --check broken.layout.kdl
broken.layout.kdl:2: unknown pane property: cmd
broken.layout.kdl:3: split is cols or rows, not `diagonal`
broken.layout.kdl:4: weight is a number of 150 or more, not `40`
@@ -69,8 +69,8 @@ end rather than first so it reads as the summary it is.
Loading is the other half of the same answer:
```
-$ sl0ppty --layout ~/.config/sl0ppty/config.kdl
-sl0ppty: config.kdl: this is a config, not a layout: `gap` is a setting
+$ slosh --layout ~/.config/slosh/config.kdl
+slosh: config.kdl: this is a config, not a layout: `gap` is a setting
```
A config handed to `--layout` is named for what it is instead of refused for
@@ -105,7 +105,7 @@ That is what lets a layout be checked in beside the project it describes and mea
the same thing in everybody's clone:
```kdl
-// ~/dev/api/sl0ppty.layout.kdl — no absolute path in it anywhere
+// ~/dev/api/slosh.layout.kdl — no absolute path in it anywhere
layout {
tab name="api" cwd="." {
pane command="nvim"
@@ -133,14 +133,14 @@ A full annotated example is
## Writing one back out
```bash
-sl0ppty -s work cmd '{"cmd":"dump-layout"}' > project.layout.kdl
+slosh -s work cmd '{"cmd":"dump-layout"}' > project.layout.kdl
```
writes the session as a layout file: tabs, splits, proportions, directories,
commands, which pane you were in. So a session can be checked in, or put back
after a restart.
-`contrib/sl0ppty-dev`
-is that loop, for when the thing you are rebuilding is sl0ppty itself.
+`contrib/slosh-dev`
+is that loop, for when the thing you are rebuilding is slosh itself.
**A pane is dumped with the command it is running**, whether a layout gave it one
or you typed it. `label` — what a layout said — comes first and outlives the
@@ -170,8 +170,8 @@ restoring gives you a fresh one.
Three arguments shape what comes out:
```bash
-sl0ppty -s work cmd '{"cmd":"dump-layout","tab":3}'
-sl0ppty -s work cmd '{"cmd":"dump-layout","relative_to":"~/dev/api","suspend":"commands"}'
+slosh -s work cmd '{"cmd":"dump-layout","tab":3}'
+slosh -s work cmd '{"cmd":"dump-layout","relative_to":"~/dev/api","suspend":"commands"}'
```
| argument | what it says |
@@ -210,8 +210,8 @@ tab and wherever the file happened to begin in the other five.
## Applying one to a running session
```bash
-sl0ppty -s work cmd '{"cmd":"apply-layout","path":"project.layout.kdl"}'
-sl0ppty -s work cmd '{"cmd":"apply-layout","kdl":"layout { tab { pane } }","replace":true}'
+slosh -s work cmd '{"cmd":"apply-layout","path":"project.layout.kdl"}'
+slosh -s work cmd '{"cmd":"apply-layout","kdl":"layout { tab { pane } }","replace":true}'
```
Without `replace`, the tabs the file describes are added to what is already
@@ -220,9 +220,9 @@ there.
## Moving a pane between tabs
```bash
-sl0ppty cmd '{"cmd":"move-pane","id":3,"tab":2}' # beside that tab's focus
-sl0ppty cmd '{"cmd":"move-pane","id":3,"tab":2,"dir":"rows"}' # under it instead
-sl0ppty cmd '{"cmd":"move-pane","id":3,"tab":0,"name":"logs"}' # into a tab of its own
+slosh cmd '{"cmd":"move-pane","id":3,"tab":2}' # beside that tab's focus
+slosh cmd '{"cmd":"move-pane","id":3,"tab":2,"dir":"rows"}' # under it instead
+slosh cmd '{"cmd":"move-pane","id":3,"tab":0,"name":"logs"}' # into a tab of its own
```
The pane keeps running: same pty, same scrollback, same process — a move is tree
@@ -266,7 +266,7 @@ The [finder](panes.md#finding-a-pane) matches on purposes as well as titles, and
## When the layout is found rather than named
Everything above assumes you name the file. When it lives *in* the project —
-`sl0ppty.layout.kdl` beside the `.git` — you do not have to: `C-a w` lists the
+`slosh.layout.kdl` beside the `.git` — you do not have to: `C-a w` lists the
projects under the roots you configured and opening one applies the layout it
found there, or a default layout bound to that directory when the project has
none, and `C-a W` writes this tab back out as that file. Same syntax, same
diff --git a/docs/panes.md b/docs/panes.md
index dd1c435..e400479 100644
--- a/docs/panes.md
+++ b/docs/panes.md
@@ -62,7 +62,7 @@ nothing you click can disagree with what is on screen.
name while there is one, so a program that keeps announcing something stale —
an agent still spinning the summary of a task it finished — is overruled by
naming its pane, from the gesture below or from a script:
- `sl0ppty cmd '{"cmd":"set-name","target":"pane","id":3,"name":"agent: gbos"}'`.
+ `slosh cmd '{"cmd":"set-name","target":"pane","id":3,"name":"agent: gbos"}'`.
An empty name hands the label back.
- **Double-click a name to rename it in place** — a pane's title or a tab in the
strip. Enter keeps it, Escape abandons it, empty gives it back to the program.
diff --git a/docs/scripting.md b/docs/scripting.md
index 8268c31..43615a2 100644
--- a/docs/scripting.md
+++ b/docs/scripting.md
@@ -1,6 +1,6 @@
# Scripting
-Three things make sl0ppty easy to drive from other programs: a socket that does
+Three things make slosh easy to drive from other programs: a socket that does
everything the keyboard does, an escape sequence a pane can use to draw its own
chrome, and a headless mode that is the whole program without a terminal.
@@ -10,9 +10,9 @@ One JSON object per line, over the session's socket. A detached session answers
exactly as an attached one does.
```bash
-$ sl0ppty -s work cmd '{"cmd":"new-tab","name":"api"}'
+$ slosh -s work cmd '{"cmd":"new-tab","name":"api"}'
{"ok":true,"id":2}
-$ sl0ppty -s work cmd '{"cmd":"panes"}'
+$ slosh -s work cmd '{"cmd":"panes"}'
{"ok":true,"panes":[{"id":1,"title":"nvim","alive":true,...}]}
```
@@ -54,9 +54,9 @@ Everything a program needs in a project it has never seen — open it, ask what
in it, act on the purposes the project's own layout declared:
```bash
-$ sl0ppty -s work cmd '{"cmd":"open-workspace","name":"api"}'
+$ slosh -s work cmd '{"cmd":"open-workspace","name":"api"}'
{"ok":true,"tab":3,"purpose":"project:api.5c1f0a3b","path":"/home/you/dev/api","created":true,"tabs":1,"honoured":0}
-$ sl0ppty -s work cmd '{"cmd":"open-workspace","name":"api"}'
+$ slosh -s work cmd '{"cmd":"open-workspace","name":"api"}'
{"ok":true,"tab":3,"purpose":"project:api.5c1f0a3b","path":"/home/you/dev/api","created":false,"tabs":0,"honoured":0}
```
@@ -68,11 +68,11 @@ re-attach.
Then read the tab it handed back:
```bash
-$ sl0ppty -s work cmd '{"cmd":"panes"}' \
+$ slosh -s work cmd '{"cmd":"panes"}' \
| jq -c '.panes[] | select(.tab_id == 3) | {id, purpose, suspended}'
{"id":7,"purpose":"agent:main","suspended":false}
{"id":8,"purpose":"service:web","suspended":true}
-$ sl0ppty -s work cmd '{"cmd":"rerun","id":8}' # start the dev server
+$ slosh -s work cmd '{"cmd":"rerun","id":8}' # start the dev server
```
The project's own layout file decided that `service:web` is the dev server and
@@ -124,9 +124,9 @@ otherwise be answered into a loop, which is exactly what `hello` used to do:
## Driving it from an agent
Everything above is what an agent needs, and none of it says which parts matter.
-`.agents/skills/driving-sl0ppty/SKILL.md` is the same socket written as
+`.agents/skills/driving-slosh/SKILL.md` is the same socket written as
instructions: how a program in a pane finds out which session it is in
-(`SL0PPTY_SESSION`, `SL0PPTY_BIN`), why work belongs in a pane that *was given a
+(`SLOSH_SESSION`, `SLOSH_BIN`), why work belongs in a pane that *was given a
command* rather than typed into somebody's shell, that `alive` and `exit_code` are
how you wait rather than reading the screen for a marker your own echo matches, and
that `purpose` is the handle to find things by because titles change underneath
@@ -141,14 +141,14 @@ reading it first.
## Headless
-`sl0ppty --script` is the whole program without a terminal: commands on stdin,
+`slosh --script` is the whole program without a terminal: commands on stdin,
answers on stdout. It is how the test suite works — drive these events, assert
this screen — which is also why the suite is 1,500-odd real end-to-end checks that
finish in about thirteen seconds.
```bash
$ printf '%s\n' '{"cmd":"split","dir":"cols"}' '{"cmd":"snapshot","format":"text"}' \
- | sl0ppty --script --cols 80 --rows 24 -- /bin/sh
+ | slosh --script --cols 80 --rows 24 -- /bin/sh
```
The bare-verb form (`snapshot text`, `send \x01\\`, `resize 100 30`) is a
diff --git a/docs/shaders.md b/docs/shaders.md
index d1eba23..860ad24 100644
--- a/docs/shaders.md
+++ b/docs/shaders.md
@@ -126,7 +126,7 @@ not always in a state to put it back:
|---|---|
| `printf '\033]5577;1;shader;\033\\'` | from the program, one exchange, both rects |
| `printf '\033]5577;1;shader-load;/path/to/preset.kdl\033\\'` | a `shaders { }` file, read by the session and routed by `where=` |
-| `sl0ppty cmd '{"cmd":"clear-shaders","id":3}'` | from outside; `id` 0 or absent means the focused pane |
+| `slosh cmd '{"cmd":"clear-shaders","id":3}'` | from outside; `id` 0 or absent means the focused pane |
| the `clear-shaders` action | on a key you bind, or from the palette |
None of them is gated on `in_band_shaders`. A chain can outlive the setting that
@@ -162,7 +162,7 @@ a config file would be a second opinion about what it says, exactly where commen
meet quoted strings.
It is a readline prompt, so editing, up/down and ctrl-r work as they do in a shell,
-and history is kept between runs in `$XDG_DATA_HOME/sl0ppty/shader-repl.history` --
+and history is kept between runs in `$XDG_DATA_HOME/slosh/shader-repl.history` --
the chains only, since `:quit` is not something you want to press up past. Tab
completes the commands, the shader names, the property keys, the expression
language's own variables, constants and functions, and filenames after `:load`.
@@ -179,7 +179,7 @@ said about anybody else.
## Your own, compiled
A shader is a C function from one cell to that cell's colours. Any `*.so` in
-`~/.config/sl0ppty/shaders/` that exports one is loaded at startup and named in
+`~/.config/slosh/shaders/` that exports one is loaded at startup and named in
the config exactly like a built-in. Skeleton, Makefile and the rules a shader
has to keep:
`contrib/shader-plugin`.
diff --git a/docs/workspaces.md b/docs/workspaces.md
index 5e00b19..4963683 100644
--- a/docs/workspaces.md
+++ b/docs/workspaces.md
@@ -17,7 +17,7 @@ A subdirectory of a configured root with one of two markers in it:
| marker | what it is |
|---|---|
-| `sl0ppty.layout.kdl` | a *declared* project — it says what it needs open |
+| `slosh.layout.kdl` | a *declared* project — it says what it needs open |
| `.git` | an *inferred* one — you work here, but you have not said how |
Anything else is not a project, and nothing is guessed from what is inside it.
@@ -40,7 +40,7 @@ Two settings, both in your [config](config.md):
```kdl
project_roots "~/dev" "~/work" depth=2
-project_layout "~/.config/sl0ppty/project.layout.kdl"
+project_layout "~/.config/slosh/project.layout.kdl"
```
`project_roots` takes more than one directory because people have more than one —
@@ -59,7 +59,7 @@ paths in it bind to the project being opened, not to the directory the file live
in** — deliberately the opposite of the rule for a layout you name yourself, where
a relative `cwd=` is relative to that file ([layouts](layouts.md#the-shape)). The
whole point of one shared layout is that `cwd="."` means *this* project; bound to
-itself it would open every project in `~/.config/sl0ppty`. Unset, a project opens
+itself it would open every project in `~/.config/slosh`. Unset, a project opens
as one pane running your shell in it.
**Nothing sniffs `package.json` or `Cargo.toml` to guess what to run.** A table
@@ -94,7 +94,7 @@ C-a w picker: ~/work newthing .git · no layout
Enter your project_layout, cwd bound to newthing
C-a Enter, npm run dev arrange it, run things
C-a P service:web Enter tag the pane that matters
-C-a W "wrote sl0ppty.layout.kdl · 4 panes, 2 suspended"
+C-a W "wrote slosh.layout.kdl · 4 panes, 2 suspended"
```
Tomorrow, `C-a w Enter` rebuilds that tab with the dev server in the pane you put
@@ -109,9 +109,9 @@ every tab carrying that purpose and says how many.
## Saving one
-`C-a W` writes the focused tab to `sl0ppty.layout.kdl` in the project's directory,
+`C-a W` writes the focused tab to `slosh.layout.kdl` in the project's directory,
and the toast says what happened:
-`wrote sl0ppty.layout.kdl · 4 panes, 2 suspended`.
+`wrote slosh.layout.kdl · 4 panes, 2 suspended`.
**What each pane is running goes in with it.** That is what makes writing a layout
the same act as arranging one: split the tab, start the dev server, start the log
@@ -155,7 +155,7 @@ the screen — so it says so in the request.
how a hand-arranged tab becomes a project's layout without opening it through the
picker first.
-`sl0ppty --check sl0ppty.layout.kdl` holds the result to the layout schema and
+`slosh --check slosh.layout.kdl` holds the result to the layout schema and
prints one `file:line: what` per problem, so a project's layout goes through the
same check as everything else you commit — see
[layouts](layouts.md#what-to-call-them).
@@ -202,9 +202,9 @@ Open one and act on what is in it, over the [control
socket](scripting.md#the-control-socket):
```bash
-$ sl0ppty -s work cmd '{"cmd":"open-workspace","name":"api"}'
+$ slosh -s work cmd '{"cmd":"open-workspace","name":"api"}'
{"ok":true,"tab":3,"purpose":"project:api.9f3c1d20","created":true,...}
-$ sl0ppty -s work cmd '{"cmd":"panes"}' # keep the ones whose tab_id is 3
+$ slosh -s work cmd '{"cmd":"panes"}' # keep the ones whose tab_id is 3
```
| verb | takes | answers |
@@ -214,8 +214,8 @@ $ sl0ppty -s work cmd '{"cmd":"panes"}' # keep the ones whose tab_id is 3
| `close-workspace` | `name` or `purpose` | `closed` — how many tabs went |
| `save-workspace` | `tab` (0 for the current one), `path` for a tab that is not a workspace yet, `suspend`, `force` | `path` `purpose` `panes` `suspended` `replaced` |
-Every one of them is in the bare dispatcher too, so `sl0ppty -s work cmd
-workspaces` and `sl0ppty -s work cmd open-workspace api` do the same from a shell
+Every one of them is in the bare dispatcher too, so `slosh -s work cmd
+workspaces` and `slosh -s work cmd open-workspace api` do the same from a shell
without quoting JSON ([scripting](scripting.md#the-control-socket)).
`open-workspace` is idempotent, which is the property that makes it safe to call
diff --git a/src/app.c b/src/app.c
index 7e5bd74..9a01781 100644
--- a/src/app.c
+++ b/src/app.c
@@ -43,12 +43,12 @@ static void ensure_config(void) {
/* A missing file is the normal case; a broken one is worth a line in the
* log, and in both the compiled-in defaults stand (fail open). */
if (access(path, R_OK) == 0) {
- fprintf(stderr, "sl0ppty: %s: %s\n", path, err[0] ? err : "parse error");
+ fprintf(stderr, "slosh: %s: %s\n", path, err[0] ? err : "parse error");
snprintf(CFG_COMPLAINT, sizeof CFG_COMPLAINT, "%s",
err[0] ? err : "config parse error");
}
} else if (err[0]) {
- fprintf(stderr, "sl0ppty: %s: %s\n", path, err);
+ fprintf(stderr, "slosh: %s: %s\n", path, err);
snprintf(CFG_COMPLAINT, sizeof CFG_COMPLAINT, "%s", err);
}
CFG_LOADED = true;
@@ -821,7 +821,7 @@ static void draw_status_line(app_t *a, screen_t *s) {
if (n) screen_text(s, x, y, line, STATUS_C, NO_COLOR, 0);
/* What goes between the two ends: the hint for whatever the pointer is on,
- * and when there is none, which sl0ppty this is. The hint wins because it is
+ * and when there is none, which slosh this is. The hint wins because it is
* about right now and the banner is about always; the banner takes the slot
* back the moment the pointer moves off, which is most of the time.
*
@@ -843,7 +843,7 @@ static void draw_status_line(app_t *a, screen_t *s) {
if (!middle && CFG.version_banner) {
/* Quieter than a hint: this is ambient, and a hint is an answer to
* something you are doing. */
- middle = "sl0ppty " SL0PPTY_VERSION;
+ middle = "slosh " SLOSH_VERSION;
middle_fg = STATUS_C;
}
if (!middle) return;
@@ -2932,7 +2932,7 @@ bool app_workspace_save(app_t *a, uint32_t tab, const char *path, int suspend,
* timestamp, for the same reason the dump has none: a file that differs every
* time is a bad diff, and this one is meant to be committed. */
fputs("// What this project needs open, written by `save-workspace`.\n"
- "// Checked by `sl0ppty --check`; opened by `open-workspace`.\n",
+ "// Checked by `slosh --check`; opened by `open-workspace`.\n",
f);
fputs(kdl, f);
bool wrote = fclose(f) == 0;
@@ -6671,7 +6671,7 @@ void app_event(app_t *a, const input_event_t *ev) {
*
* The inverse of apply-layout, and the thing that makes a restart survivable:
* build a fresh binary, dump what you have, quit, come back with `--layout`.
- * contrib/sl0ppty-dev wraps exactly that.
+ * contrib/slosh-dev wraps exactly that.
*
* What can honestly be restored is the *shape*: tabs, their names and
* purposes, how the panes are split, in what proportion, in which directory,
diff --git a/src/app.h b/src/app.h
index 3c5e357..2a3435e 100644
--- a/src/app.h
+++ b/src/app.h
@@ -2,13 +2,13 @@
*
* Both front ends (the interactive client and the headless driver) drive this
* same object, so there is exactly one implementation of what a key does. */
-#ifndef SL0PPTY_APP_H
-#define SL0PPTY_APP_H
+#ifndef SLOSH_APP_H
+#define SLOSH_APP_H
#include "kdl.h"
#include "project.h"
#include "shader.h"
-#include "sl0ppty.h"
+#include "slosh.h"
typedef enum { SPLIT_COLS, SPLIT_ROWS } split_dir_t;
@@ -174,7 +174,7 @@ typedef struct {
} app_workspace_save_t;
/* Write one tab out as a project's layout: the same dump `dump-layout` answers
- * with, relative to the project, into `sl0ppty.layout.kdl` beside it. `tab` 0 is
+ * with, relative to the project, into `slosh.layout.kdl` beside it. `tab` 0 is
* the current one; `path` names the project for a tab that is not yet a
* workspace (and saving adopts it, which is the whole of onboarding one).
* Refused without `force` when the project already has a layout: that file is
@@ -319,4 +319,4 @@ char *app_dump_layout(app_t *a, dump_layout_t *o);
char *app_panes_json(app_t *a);
char *app_tabs_json(app_t *a);
-#endif /* SL0PPTY_APP_H */
+#endif /* SLOSH_APP_H */
diff --git a/src/client.c b/src/client.c
index b1155b8..e826164 100644
--- a/src/client.c
+++ b/src/client.c
@@ -89,7 +89,7 @@ int client_run(int fd) {
term_size(&cols, &rows, &cell_w, &cell_h);
if (tcgetattr(STDIN_FILENO, &g_saved) != 0) {
- fprintf(stderr, "sl0ppty: not a terminal\n");
+ fprintf(stderr, "slosh: not a terminal\n");
return 1;
}
g_saved_ok = true;
diff --git a/src/cmd.h b/src/cmd.h
index 0191c20..a54505d 100644
--- a/src/cmd.h
+++ b/src/cmd.h
@@ -1,7 +1,7 @@
/* The command vocabulary, shared by the headless driver and the control
* socket, so a script written against one works against the other. */
-#ifndef SL0PPTY_CMD_H
-#define SL0PPTY_CMD_H
+#ifndef SLOSH_CMD_H
+#define SLOSH_CMD_H
#include "app.h"
@@ -10,4 +10,4 @@
char *cmd_exec(app_t *a, screen_t *s, input_parser_t *in, const char *line,
bool *quit);
-#endif /* SL0PPTY_CMD_H */
+#endif /* SLOSH_CMD_H */
diff --git a/src/config.c b/src/config.c
index 4958883..48622b2 100644
--- a/src/config.c
+++ b/src/config.c
@@ -1324,9 +1324,9 @@ static void cb_chain(cfgbuf_t *b, const char *indent, const shader_t *sh,
char *config_render(const config_t *c) {
cfgbuf_t b = {0};
- cb_add(&b, "// sl0ppty config, as it currently stands.\n");
+ cb_add(&b, "// slosh config, as it currently stands.\n");
cb_add(&b, "//\n");
- cb_add(&b, "// Written by `sl0ppty --dump-config`, so every value here is\n");
+ cb_add(&b, "// Written by `slosh --dump-config`, so every value here is\n");
cb_add(&b, "// the one in force rather than one somebody typed up. Delete\n");
cb_add(&b, "// anything you do not want to pin; what is missing is a\n");
cb_add(&b, "// default, and defaults are allowed to improve.\n");
@@ -1423,7 +1423,7 @@ char *config_render(const config_t *c) {
if (c->shader_dir)
cb_qstr(&b, "shader_dir", c->shader_dir, NULL);
else
- cb_add(&b, "// shader_dir \"~/.config/sl0ppty/shaders\"\n");
+ cb_add(&b, "// shader_dir \"~/.config/slosh/shaders\"\n");
if (c->nproject_roots) {
cb_add(&b, "project_roots");
for (size_t i = 0; i < c->nproject_roots; i++) {
@@ -1438,7 +1438,7 @@ char *config_render(const config_t *c) {
if (c->project_layout)
cb_qstr(&b, "project_layout", c->project_layout, NULL);
else
- cb_add(&b, "// project_layout \"~/.config/sl0ppty/project.layout.kdl\"\n");
+ cb_add(&b, "// project_layout \"~/.config/slosh/project.layout.kdl\"\n");
cb_add(&b, "\n// ---- colour ----\ntheme {\n");
for (size_t i = 0; i < sizeof THEME_COLORS / sizeof *THEME_COLORS; i++)
@@ -1552,17 +1552,17 @@ static action_t action_by_name(const char *name) {
const char *config_default_path(void) {
static char path[512];
- const char *explicit_ = getenv("SL0PPTY_CONFIG");
+ const char *explicit_ = getenv("SLOSH_CONFIG");
if (explicit_ && *explicit_) {
snprintf(path, sizeof path, "%s", explicit_);
return path;
}
const char *xdg = getenv("XDG_CONFIG_HOME");
if (xdg && *xdg)
- snprintf(path, sizeof path, "%s/sl0ppty/config.kdl", xdg);
+ snprintf(path, sizeof path, "%s/slosh/config.kdl", xdg);
else {
const char *home = getenv("HOME");
- snprintf(path, sizeof path, "%s/.config/sl0ppty/config.kdl",
+ snprintf(path, sizeof path, "%s/.config/slosh/config.kdl",
home ? home : ".");
}
return path;
@@ -1649,9 +1649,8 @@ static void complain_unknown_top(config_t *c, const kdl_node_t *root, char *err,
if (!n || !n->name) continue;
if (config_is_setting(n->name)) continue;
if (strcmp(n->name, "layout") == 0)
- complain(
- c, err, errcap, n->line,
- "this is a layout, not a config: `sl0ppty --layout` reads those");
+ complain(c, err, errcap, n->line,
+ "this is a layout, not a config: `slosh --layout` reads those");
else
complain(c, err, errcap, n->line, "unknown setting: %s", n->name);
}
diff --git a/src/config.h b/src/config.h
index 6609ea3..a8b94f5 100644
--- a/src/config.h
+++ b/src/config.h
@@ -4,8 +4,8 @@
* config file costs you a warning, never a terminal (the fail-open property
* D9 asks of the CLI, applied to the mux itself).
*/
-#ifndef SL0PPTY_CONFIG_H
-#define SL0PPTY_CONFIG_H
+#ifndef SLOSH_CONFIG_H
+#define SLOSH_CONFIG_H
#include <stdbool.h>
#include <stddef.h>
@@ -13,7 +13,7 @@
#include "expr.h"
#include "shader.h"
-#include "sl0ppty.h"
+#include "slosh.h"
/* Pane states a shader can be hung off, in the order they are tested. Only
* states a pane can actually be seen in — which `dead` now is: a pane whose
@@ -137,7 +137,7 @@ typedef struct {
* Discoverability for a frame whose affordances are mostly one character
* wide; off if you already know them. */
bool hints;
- /* What sl0ppty this is, in the middle of the status line, whenever there is
+ /* What slosh this is, in the middle of the status line, whenever there is
* no hint to put there. The slot is otherwise empty most of the time, and
* "which build am I attached to" is the first question when a session is
* behaving oddly -- a session keeps the binary it started with, so the
@@ -377,7 +377,7 @@ typedef struct {
char *shader_dir;
/* Where projects live: `project_roots "~/dev" "~/work" depth=2`. A project is
- * a subdirectory of one of these with a `sl0ppty.layout.kdl` in it -- or a
+ * a subdirectory of one of these with a `slosh.layout.kdl` in it -- or a
* `.git`, which gets `project_layout` instead. Empty means the feature is
* dormant and costs nothing.
*
@@ -420,7 +420,7 @@ typedef struct {
* it keeps the defaults and writes the reason to `err`. */
void config_defaults(config_t *c);
bool config_load(config_t *c, const char *path, char *err, size_t errcap);
-/* $SL0PPTY_CONFIG, else $XDG_CONFIG_HOME/sl0ppty/config.kdl, else ~/.config/… */
+/* $SLOSH_CONFIG, else $XDG_CONFIG_HOME/slosh/config.kdl, else ~/.config/… */
const char *config_default_path(void);
/* Every complaint from the last load, oldest first: "config.kdl:12: ...".
* Returns how many were written. */
@@ -497,4 +497,4 @@ const char *config_action_group(action_t a);
/* "ctrl+a", "alt+left", "\\", "f" -> key + mods. False if unparseable. */
bool config_parse_chord(const char *text, int *out_key, uint16_t *out_mods);
-#endif /* SL0PPTY_CONFIG_H */
+#endif /* SLOSH_CONFIG_H */
diff --git a/src/expr.h b/src/expr.h
index 6508ec7..c409ded 100644
--- a/src/expr.h
+++ b/src/expr.h
@@ -33,8 +33,8 @@
* rather than a trap: an expression that is wrong should look wrong, not take
* the session with it.
*/
-#ifndef SL0PPTY_EXPR_H
-#define SL0PPTY_EXPR_H
+#ifndef SLOSH_EXPR_H
+#define SLOSH_EXPR_H
#include <stdbool.h>
#include <stddef.h>
@@ -88,4 +88,4 @@ int expr_eval(const expr_prog_t *p, const expr_env_t *env);
* case there is nothing to reuse. */
bool expr_amount_map(expr_prog_t *p, const expr_env_t *env, uint8_t **out);
-#endif /* SL0PPTY_EXPR_H */
+#endif /* SLOSH_EXPR_H */
diff --git a/src/graphics.h b/src/graphics.h
index 2967b2a..b3cd6ec 100644
--- a/src/graphics.h
+++ b/src/graphics.h
@@ -8,8 +8,8 @@
* This is why pi has to fall back to sixel under tmux and zellij: they drop
* the images entirely. Here the native path works.
*/
-#ifndef SL0PPTY_GRAPHICS_H
-#define SL0PPTY_GRAPHICS_H
+#ifndef SLOSH_GRAPHICS_H
+#define SLOSH_GRAPHICS_H
#include <stdbool.h>
#include <stddef.h>
@@ -85,4 +85,4 @@ void gfx_forget_pane(graphics_t *g, uint32_t pane);
size_t gfx_placements(const graphics_t *g, const gfx_place_t **out);
size_t gfx_images(const graphics_t *g, const gfx_image_t **out);
-#endif /* SL0PPTY_GRAPHICS_H */
+#endif /* SLOSH_GRAPHICS_H */
diff --git a/src/headless.c b/src/headless.c
index e1fcaf5..399a7ea 100644
--- a/src/headless.c
+++ b/src/headless.c
@@ -7,7 +7,7 @@
* `settle` is implemented here because it needs an event loop.
*/
#define _GNU_SOURCE
-#include "sl0ppty.h"
+#include "slosh.h"
#include <poll.h>
#include <stdio.h>
@@ -67,13 +67,13 @@ int run_headless(const char *const argv[], uint16_t cols, uint16_t rows,
app_t *a = app_new(argv, cols, rows);
if (!a) {
- fprintf(stderr, "sl0ppty: cannot spawn pane\n");
+ fprintf(stderr, "slosh: cannot spawn pane\n");
return 1;
}
if (layout) {
char err[256] = {0};
if (!app_apply_layout_file(a, layout, true, err, sizeof err))
- fprintf(stderr, "sl0ppty: %s: %s\n", layout, err[0] ? err : "bad layout");
+ fprintf(stderr, "slosh: %s: %s\n", layout, err[0] ? err : "bad layout");
}
app_resize(a, cols, rows);
screen_t s;
@@ -108,7 +108,7 @@ int run_headless(const char *const argv[], uint16_t cols, uint16_t rows,
char *reply = cmd_exec(a, &s, in, line, &quit);
if (!reply) {
- fprintf(stderr, "sl0ppty: unknown command: %s\n", line);
+ fprintf(stderr, "slosh: unknown command: %s\n", line);
continue;
}
/* Only commands that answer print a line, so the harness stays in step. */
diff --git a/src/input.h b/src/input.h
index 4329f78..adda27a 100644
--- a/src/input.h
+++ b/src/input.h
@@ -8,8 +8,8 @@
* The event carries GhosttyKey / GHOSTTY_MODS_* values as plain integers so
* this header stays free of libghostty-vt.
*/
-#ifndef SL0PPTY_INPUT_H
-#define SL0PPTY_INPUT_H
+#ifndef SLOSH_INPUT_H
+#define SLOSH_INPUT_H
#include <stdbool.h>
#include <stddef.h>
@@ -91,4 +91,4 @@ void input_timeout(input_parser_t *p, input_cb_t cb, void *ud);
/* Debug/test rendering of an event, e.g. "key ARROW_UP mods=CTRL press". */
void input_event_describe(const input_event_t *ev, char *buf, size_t cap);
-#endif /* SL0PPTY_INPUT_H */
+#endif /* SLOSH_INPUT_H */
diff --git a/src/json.h b/src/json.h
index f8365e4..f9442ad 100644
--- a/src/json.h
+++ b/src/json.h
@@ -1,6 +1,6 @@
/* A minimal JSON writer. No parser: we only ever emit. */
-#ifndef SL0PPTY_JSON_H
-#define SL0PPTY_JSON_H
+#ifndef SLOSH_JSON_H
+#define SLOSH_JSON_H
#include <stdbool.h>
#include <stddef.h>
@@ -25,4 +25,4 @@ void json_int(json_t *j, const char *key, long long val);
void json_bool(json_t *j, const char *key, bool val);
void json_null(json_t *j, const char *key);
-#endif /* SL0PPTY_JSON_H */
+#endif /* SLOSH_JSON_H */
diff --git a/src/jsonval.h b/src/jsonval.h
index 9d0a5d2..1eedb4c 100644
--- a/src/jsonval.h
+++ b/src/jsonval.h
@@ -1,8 +1,8 @@
/* A small JSON reader, for the control API (D3). We already emit JSON; this
* is the other half. Deliberately minimal: no streaming, no comments, no
* duplicate-key policy beyond "last wins". */
-#ifndef SL0PPTY_JSONVAL_H
-#define SL0PPTY_JSONVAL_H
+#ifndef SLOSH_JSONVAL_H
+#define SLOSH_JSONVAL_H
#include <stdbool.h>
#include <stddef.h>
@@ -42,4 +42,4 @@ const char *jv_gets(const jv_t *obj, const char *key, const char *fallback);
long jv_geti(const jv_t *obj, const char *key, long fallback);
bool jv_getb(const jv_t *obj, const char *key, bool fallback);
-#endif /* SL0PPTY_JSONVAL_H */
+#endif /* SLOSH_JSONVAL_H */
diff --git a/src/kdl.h b/src/kdl.h
index 9a774c7..9787fd9 100644
--- a/src/kdl.h
+++ b/src/kdl.h
@@ -10,8 +10,8 @@
* Values are kept as strings and converted on read, which keeps the parser
* small and puts type decisions where the meaning is.
*/
-#ifndef SL0PPTY_KDL_H
-#define SL0PPTY_KDL_H
+#ifndef SLOSH_KDL_H
+#define SLOSH_KDL_H
#include <stdbool.h>
#include <stddef.h>
@@ -47,4 +47,4 @@ const char *kdl_prop(const kdl_node_t *n, const char *key,
long kdl_prop_int(const kdl_node_t *n, const char *key, long fallback);
bool kdl_prop_bool(const kdl_node_t *n, const char *key, bool fallback);
-#endif /* SL0PPTY_KDL_H */
+#endif /* SLOSH_KDL_H */
diff --git a/src/main.c b/src/main.c
index 766d290..f3fdd12 100644
--- a/src/main.c
+++ b/src/main.c
@@ -1,15 +1,15 @@
/* Entry point and argument parsing.
*
- * sl0ppty attach to session "main", creating it if needed
- * sl0ppty -s NAME ... a named session
- * sl0ppty ls live sessions
- * sl0ppty cmd LINE one control command against a session
- * sl0ppty --server NAME run a session in the foreground (internal)
- * sl0ppty --script the headless driver (no server, no tty)
- * sl0ppty --headless run once, print the screen
+ * slosh attach to session "main", creating it if needed
+ * slosh -s NAME ... a named session
+ * slosh ls live sessions
+ * slosh cmd LINE one control command against a session
+ * slosh --server NAME run a session in the foreground (internal)
+ * slosh --script the headless driver (no server, no tty)
+ * slosh --headless run once, print the screen
*/
#define _GNU_SOURCE
-#include "sl0ppty.h"
+#include "slosh.h"
#include <stdio.h>
#include <stdlib.h>
@@ -59,7 +59,7 @@ static bool looks_like_layout(const char *path) {
return layout;
}
-/* `sl0ppty --check FILE` on a layout. Telling somebody they handed a layout to
+/* `slosh --check FILE` on a layout. Telling somebody they handed a layout to
* the config checker was honest and unhelpful: the file they want checked is
* the one they were told to check. Same output shape, same exit status. */
static int check_layout(const char *path) {
@@ -76,7 +76,7 @@ static int check_layout(const char *path) {
return n ? 1 : 0;
}
-/* `sl0ppty --check [FILE]`: read a config the way a session would and say what
+/* `slosh --check [FILE]`: read a config the way a session would and say what
* it could not honour, one problem per line, `file:line: what`. Exits 1 when
* there is anything to say, so it drops into an editor's compile step or a
* pre-commit hook without any glue.
@@ -123,7 +123,7 @@ static int check_config(const char *path) {
}
static void usage(void) {
- fputs("usage: sl0ppty [-s NAME] [--layout FILE] [--no-reload]\n"
+ fputs("usage: slosh [-s NAME] [--layout FILE] [--no-reload]\n"
" [--version] [--dump-config] [--check [FILE]]\n"
" [ls | cmd LINE | -- CMD...]\n",
stderr);
@@ -163,7 +163,7 @@ int main(int argc, char **argv) {
watch = false;
else if (strcmp(a, "--check") == 0) {
/* An optional path, so it lints a file you have not installed yet:
- * `sl0ppty --check theme.kdl`. Without one it checks the config a session
+ * `slosh --check theme.kdl`. Without one it checks the config a session
* would actually read. A layout is checked as a layout: one flag, and the
* file decides which schema it is held to. */
const char *path =
@@ -172,7 +172,7 @@ int main(int argc, char **argv) {
: check_config(path);
} else if (strcmp(a, "--dump-config") == 0) {
/* Every setting with its *default*, as a file you could have written:
- * `sl0ppty --dump-config > ~/.config/sl0ppty/config.kdl` is a supported
+ * `slosh --dump-config > ~/.config/slosh/config.kdl` is a supported
* way to start one. Deliberately not the values a config in effect gives
* them -- this is the file to begin from, and `--check` is the one that
* reads yours and says what it understood. */
@@ -183,7 +183,7 @@ int main(int argc, char **argv) {
} else if (strcmp(a, "--version") == 0) {
/* The same string the status line shows, so "which build is this" has
* one answer whether you ask the binary or the session. */
- printf("sl0ppty %s\n", SL0PPTY_VERSION);
+ printf("slosh %s\n", SLOSH_VERSION);
return 0;
} else if (strcmp(a, "ls") == 0)
list = true;
@@ -203,7 +203,7 @@ int main(int argc, char **argv) {
cmd_argv[cmd_n++] = argv[j];
break;
} else {
- fprintf(stderr, "sl0ppty: unknown argument: %s\n", a);
+ fprintf(stderr, "slosh: unknown argument: %s\n", a);
usage();
return 2;
}
@@ -231,7 +231,7 @@ int main(int argc, char **argv) {
if (cmd_line) {
int fd = server_connect(name);
if (fd < 0) {
- fprintf(stderr, "sl0ppty: no session named %s\n", name);
+ fprintf(stderr, "slosh: no session named %s\n", name);
return 1;
}
return client_control(fd, cmd_line);
@@ -247,7 +247,7 @@ int main(int argc, char **argv) {
int fd = server_connect(name);
if (fd < 0) fd = server_spawn(name, cmd_argv, cols, rows, layout, watch);
if (fd < 0) {
- fprintf(stderr, "sl0ppty: cannot start session %s\n", name);
+ fprintf(stderr, "slosh: cannot start session %s\n", name);
return 1;
}
return client_run(fd);
diff --git a/src/osc5577.h b/src/osc5577.h
index 21b82a1..e6033f1 100644
--- a/src/osc5577.h
+++ b/src/osc5577.h
@@ -23,8 +23,8 @@
* discards an OSC it does not know — nothing is drawn, and we need no
* buffering that could stall a pane's output.
*/
-#ifndef SL0PPTY_OSC5577_H
-#define SL0PPTY_OSC5577_H
+#ifndef SLOSH_OSC5577_H
+#define SLOSH_OSC5577_H
#include <stdbool.h>
#include <stddef.h>
@@ -53,4 +53,4 @@ size_t osc5577_unescape(const char *in, size_t in_len, char *out, size_t cap);
* to defend against what a hostile label could smuggle through. */
bool osc5577_valid_id(const char *id);
-#endif /* SL0PPTY_OSC5577_H */
+#endif /* SLOSH_OSC5577_H */
diff --git a/src/pane.c b/src/pane.c
index 16734c7..00b1e59 100644
--- a/src/pane.c
+++ b/src/pane.c
@@ -1,7 +1,7 @@
/* A pane: one pty, one libghostty-vt terminal, and the code that composites
* its viewport into the screen. */
#define _GNU_SOURCE
-#include "sl0ppty.h"
+#include "slosh.h"
#include <errno.h>
#include <stdio.h>
@@ -155,7 +155,7 @@ static void on_osc5577(const char *verb, const char *payload, void *ud) {
} else if (strcmp(verb, "hello") == 0) {
/* Our addition to the fork's protocol, which is unversioned in practice:
* a program can ask what it is talking to before using anything new. */
- const char *reply = "\033]5577;1;hello-reply;sl0ppty;1\033\\";
+ const char *reply = "\033]5577;1;hello-reply;slosh;1\033\\";
pane_write(p, reply, strlen(reply));
} else if (p->osc_cb) {
p->osc_cb(p, verb, payload, p->osc_ud); /* purpose, and anything later */
diff --git a/src/path.c b/src/path.c
index edacda2..9f962b6 100644
--- a/src/path.c
+++ b/src/path.c
@@ -6,7 +6,7 @@
* session happened to be in. Silently \u2014 which is the worst way for a path to
* be wrong, because the pane still starts and still works.
*/
-#include "sl0ppty.h"
+#include "slosh.h"
#include <sys/stat.h>
diff --git a/src/png.h b/src/png.h
index 757edeb..ddd1b72 100644
--- a/src/png.h
+++ b/src/png.h
@@ -12,11 +12,11 @@
* library already handles. Decoding only, never encoding — we hand the client
* RGBA.
*/
-#ifndef SL0PPTY_PNG_H
-#define SL0PPTY_PNG_H
+#ifndef SLOSH_PNG_H
+#define SLOSH_PNG_H
/* Install the process-global PNG decoder. Must be called before any terminal
* exists, and is idempotent. */
void png_init(void);
-#endif /* SL0PPTY_PNG_H */
+#endif /* SLOSH_PNG_H */
diff --git a/src/project.c b/src/project.c
index 381d17f..9146971 100644
--- a/src/project.c
+++ b/src/project.c
@@ -9,7 +9,7 @@
#include <string.h>
#include <sys/stat.h>
-#include "sl0ppty.h"
+#include "slosh.h"
/* FNV-1a over the resolved path, printed as eight hex digits.
*
diff --git a/src/project.h b/src/project.h
index 1c2a103..6bf3021 100644
--- a/src/project.h
+++ b/src/project.h
@@ -10,8 +10,8 @@
* which is nothing next to the keystroke that asked -- and an answer nobody
* remembered cannot be stale, which no watcher can promise on a bind mount.
*/
-#ifndef SL0PPTY_PROJECT_H
-#define SL0PPTY_PROJECT_H
+#ifndef SLOSH_PROJECT_H
+#define SLOSH_PROJECT_H
#include <stdbool.h>
#include <stddef.h>
@@ -20,7 +20,7 @@
/* The file a project uses to say what it needs. One name, so there is no
* precedence question: a layout file by D2's rule, checked by `--check`, and
* highlighted by anything that knows KDL. */
-#define PROJECT_LAYOUT_FILE "sl0ppty.layout.kdl"
+#define PROJECT_LAYOUT_FILE "slosh.layout.kdl"
/* How many projects one session will look at. A picker is not a filesystem
* browser: past this many the answer to "which project" is a search, not a
@@ -61,4 +61,4 @@ bool project_find(const char *const *roots, int depth, const char *name,
* worktrees of one repo are two workspaces, which is what they are. */
void project_slug(const char *path, const char *name, char *out, size_t cap);
-#endif /* SL0PPTY_PROJECT_H */
+#endif /* SLOSH_PROJECT_H */
diff --git a/src/proto.c b/src/proto.c
index 100791e..3c14f3b 100644
--- a/src/proto.c
+++ b/src/proto.c
@@ -95,9 +95,9 @@ int msg_send(int fd, uint8_t type, const void *data, size_t len) {
static int session_dir(char *out, size_t cap) {
const char *run = getenv("XDG_RUNTIME_DIR");
if (run && *run)
- snprintf(out, cap, "%s/sl0ppty", run);
+ snprintf(out, cap, "%s/slosh", run);
else
- snprintf(out, cap, "/tmp/sl0ppty-%u", (unsigned)getuid());
+ snprintf(out, cap, "/tmp/slosh-%u", (unsigned)getuid());
if (mkdir(out, 0700) != 0 && errno != EEXIST) return -1;
return 0;
}
diff --git a/src/proto.h b/src/proto.h
index 3f39d0e..e6cd42c 100644
--- a/src/proto.h
+++ b/src/proto.h
@@ -4,8 +4,8 @@
* the interesting protocol is the JSON control channel (M3) that rides on
* MSG_CMD, and it speaks the same vocabulary as the headless driver.
*/
-#ifndef SL0PPTY_PROTO_H
-#define SL0PPTY_PROTO_H
+#ifndef SLOSH_PROTO_H
+#define SLOSH_PROTO_H
#include <stdbool.h>
#include <stddef.h>
@@ -57,7 +57,7 @@ bool msg_reader_next(msg_reader_t *r, msg_t *out);
/* Blocking send of one frame. Returns 0 on success, -1 if the peer is gone. */
int msg_send(int fd, uint8_t type, const void *data, size_t len);
-/* $XDG_RUNTIME_DIR/sl0ppty/<name>.sock, or /tmp/sl0ppty-<uid>/<name>.sock.
+/* $XDG_RUNTIME_DIR/slosh/<name>.sock, or /tmp/slosh-<uid>/<name>.sock.
* Creates the directory (0700). Returns 0 on success. */
int session_socket_path(const char *name, char *out, size_t cap);
int session_log_path(const char *name, char *out, size_t cap);
@@ -65,4 +65,4 @@ int session_log_path(const char *name, char *out, size_t cap);
* array. Returns the count. */
size_t session_list(char ***out_names);
-#endif /* SL0PPTY_PROTO_H */
+#endif /* SLOSH_PROTO_H */
diff --git a/src/pty.c b/src/pty.c
index 73fb707..33afb10 100644
--- a/src/pty.c
+++ b/src/pty.c
@@ -1,7 +1,7 @@
/* pty spawn. Hand-rolled rather than forkpty() so we need no libutil and
* behave identically under musl. */
#define _GNU_SOURCE
-#include "sl0ppty.h"
+#include "slosh.h"
#include <errno.h>
#include <fcntl.h>
@@ -65,7 +65,7 @@ int pty_spawn(pty_t *p, const char *const argv[], uint16_t cols, uint16_t rows,
/* We are opinionated about the outer terminal (D11), and we present the
* same contract inward. xterm-ghostty is what libghostty-vt implements. */
setenv("TERM", "xterm-ghostty", 1);
- setenv("SL0PPTY", "1", 1);
+ setenv("SLOSH", "1", 1);
unsetenv("ZELLIJ");
signal(SIGPIPE, SIG_DFL);
diff --git a/src/screen.c b/src/screen.c
index 616bf30..b3c8564 100644
--- a/src/screen.c
+++ b/src/screen.c
@@ -1,7 +1,7 @@
/* The compositor: a cell buffer for the whole screen, and a diff that turns
* two of them into the minimal byte stream for the real terminal. */
#define _GNU_SOURCE
-#include "sl0ppty.h"
+#include "slosh.h"
#include <ghostty/vt.h>
diff --git a/src/server.c b/src/server.c
index 398d279..578ffff 100644
--- a/src/server.c
+++ b/src/server.c
@@ -44,7 +44,7 @@ static int64_t now_ms(void) {
* by sending MSG_HELLO; anything else (a control command, a liveness probe
* from `ls`) is just a connection and never displaces anybody.
*
- * This distinction is not fussiness. The zellij fork sl0ppty replaces had a
+ * This distinction is not fussiness. The zellij fork slosh replaces had a
* 20-25%% CLI failure rate because every action probed liveness by connecting,
* that probe counted as a client, and its teardown removed the *real* one. */
#define MAX_CONNS 16
@@ -239,21 +239,21 @@ static bool watch_hit(const watchset_t *w, const char *name) {
/* What every pane is told about the session around it. Panes inherit this
* process's environment, so this is how a program *inside* one learns which
- * session it is in -- and therefore which socket to talk to. `SL0PPTY=1`
+ * session it is in -- and therefore which socket to talk to. `SLOSH=1`
* (pty.c) says "you are in a pane"; this says which one of possibly several,
* which is the part a program cannot work out for itself: `ls` lists them all
* and none of them is labelled "the one you are in".
*
* NULL for a mode with no socket, and that case is why this is a function both
* modes call rather than two setenvs in the mode that has one. `--script` has
- * always been *documented* as leaving `SL0PPTY_SESSION` unset -- but a value it
+ * always been *documented* as leaving `SLOSH_SESSION` unset -- but a value it
* never set was a value it inherited, and a script driver started from inside a
* pane handed its own panes the *outer* session's name. Anything following the
- * documented recipe (`-s ${SL0PPTY_SESSION:-main} cmd`) then sent its commands
+ * documented recipe (`-s ${SLOSH_SESSION:-main} cmd`) then sent its commands
* to a session it was not in, confidently, because the name it read was real.
*
- * `SL0PPTY_BIN` is set in both modes for the same reason it is set in either: a
- * program in a pane that finds `sl0ppty` missing from its PATH -- a session
+ * `SLOSH_BIN` is set in both modes for the same reason it is set in either: a
+ * program in a pane that finds `slosh` missing from its PATH -- a session
* started from a build tree, an agent with a trimmed environment -- can
* otherwise see the session it is in and have no way to reach it. Read from
* /proc rather than argv[0], which is whatever the caller felt like passing,
@@ -261,14 +261,14 @@ static bool watch_hit(const watchset_t *w, const char *name) {
* pane, not one that made some pane somewhere. */
void session_env(const char *name) {
if (name)
- setenv("SL0PPTY_SESSION", name, 1);
+ setenv("SLOSH_SESSION", name, 1);
else
- unsetenv("SL0PPTY_SESSION");
+ unsetenv("SLOSH_SESSION");
char self[512];
ssize_t sn = readlink("/proc/self/exe", self, sizeof self - 1);
if (sn > 0) {
self[sn] = 0;
- setenv("SL0PPTY_BIN", self, 1);
+ setenv("SLOSH_BIN", self, 1);
}
}
@@ -278,8 +278,7 @@ int server_run(const char *name, const char *const argv[], uint16_t cols,
if (session_socket_path(name, path, sizeof path) != 0) return 1;
int lfd = listen_socket(path);
if (lfd < 0) {
- fprintf(stderr, "sl0ppty: cannot listen on %s: %s\n", path,
- strerror(errno));
+ fprintf(stderr, "slosh: cannot listen on %s: %s\n", path, strerror(errno));
return 1;
}
@@ -305,7 +304,7 @@ int server_run(const char *name, const char *const argv[], uint16_t cols,
if (layout) {
char err[256] = {0};
if (!app_apply_layout_file(s.app, layout, true, err, sizeof err))
- fprintf(stderr, "sl0ppty: %s: %s\n", layout, err[0] ? err : "bad layout");
+ fprintf(stderr, "slosh: %s: %s\n", layout, err[0] ? err : "bad layout");
}
app_resize(s.app, cols, rows);
screen_init(&s.screen, cols, rows);
diff --git a/src/server.h b/src/server.h
index 6b58aa6..b5d114a 100644
--- a/src/server.h
+++ b/src/server.h
@@ -1,11 +1,11 @@
/* Server and client entry points. See proto.h for the wire. */
-#ifndef SL0PPTY_SERVER_H
-#define SL0PPTY_SERVER_H
+#ifndef SLOSH_SERVER_H
+#define SLOSH_SERVER_H
#include <stdbool.h>
#include <stdint.h>
-#include "sl0ppty.h"
+#include "slosh.h"
/* Run the session in this process (the daemonised half). `watch` re-reads the
* config when the file changes; see server.c for why that is a flag and not a
@@ -25,4 +25,4 @@ int server_connect(const char *name);
int client_run(int fd);
int client_control(int fd, const char *line);
-#endif /* SL0PPTY_SERVER_H */
+#endif /* SLOSH_SERVER_H */
diff --git a/src/shader.c b/src/shader.c
index 6f24564..b748e21 100644
--- a/src/shader.c
+++ b/src/shader.c
@@ -247,20 +247,20 @@ static size_t load_one(const char *path, char *err, size_t errcap) {
union {
void *obj;
const shader_plugin_t *(*fn)(void);
- } entry = {.obj = dlsym(lib, SL0PPTY_SHADER_PLUGIN_SYM)};
+ } entry = {.obj = dlsym(lib, SLOSH_SHADER_PLUGIN_SYM)};
if (!entry.obj) {
if (err && !err[0])
- snprintf(err, errcap, "%s: no " SL0PPTY_SHADER_PLUGIN_SYM, path);
+ snprintf(err, errcap, "%s: no " SLOSH_SHADER_PLUGIN_SYM, path);
dlclose(lib);
return 0;
}
const shader_plugin_t *t = entry.fn();
- if (!t || t->abi != SL0PPTY_SHADER_ABI) {
+ if (!t || t->abi != SLOSH_SHADER_ABI) {
if (err && !err[0])
snprintf(err, errcap, "%s: shader ABI %u, we speak %u", path,
- t ? t->abi : 0, SL0PPTY_SHADER_ABI);
+ t ? t->abi : 0, SLOSH_SHADER_ABI);
dlclose(lib);
return 0;
}
diff --git a/src/shader.h b/src/shader.h
index 8cee437..a6d9f65 100644
--- a/src/shader.h
+++ b/src/shader.h
@@ -19,15 +19,15 @@
* Shaders chain: each is a complete pass, so `grayscale` then `tint` differs
* from `tint` then `grayscale`, and both are expressible.
*/
-#ifndef SL0PPTY_SHADER_H
-#define SL0PPTY_SHADER_H
+#ifndef SLOSH_SHADER_H
+#define SLOSH_SHADER_H
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include "shader_abi.h"
-#include "sl0ppty.h"
+#include "slosh.h"
/* Per pane, and separately per config. Small and fixed: a stack this deep is
* already a lot of passes over the same cells. */
@@ -80,4 +80,4 @@ size_t shader_load_dir(const char *dir, char *err, size_t errcap);
void shade_apply(screen_t *s, const shader_t *shaders, size_t n, rect_t r,
const rect_t *hole, const shade_ctx_t *base);
-#endif /* SL0PPTY_SHADER_H */
+#endif /* SLOSH_SHADER_H */
diff --git a/src/shader_abi.h b/src/shader_abi.h
index 5cfb560..be737c4 100644
--- a/src/shader_abi.h
+++ b/src/shader_abi.h
@@ -6,13 +6,13 @@
* cannot reach anything else, because nothing else is declared here.
*
* Everything in here is ABI. Changing the layout of these structs breaks
- * every plugin built against the old one, so SL0PPTY_SHADER_ABI is bumped
+ * every plugin built against the old one, so SLOSH_SHADER_ABI is bumped
* when they change, and a plugin that reports the wrong version (or the wrong
* sizes, which catches a plugin built against an edited copy of this file) is
* refused at load rather than trusted into a crash.
*/
-#ifndef SL0PPTY_SHADER_ABI_H
-#define SL0PPTY_SHADER_ABI_H
+#ifndef SLOSH_SHADER_ABI_H
+#define SLOSH_SHADER_ABI_H
#include <stdbool.h>
#include <stddef.h>
@@ -21,7 +21,7 @@
/* 3: shade_ctx_t gained `state_ms`, so an effect can know how long the pane has
* been as it is and not only what time it is; struct shader gained
* `channels`, which is the pass's business rather than a shader's. */
-#define SL0PPTY_SHADER_ABI 3
+#define SLOSH_SHADER_ABI 3
/* Which of a cell's two colours a pass is allowed to keep. Enforced by the
* pass, not by the shader: every shader writes whatever it writes, and the
@@ -134,9 +134,9 @@ struct shader {
*
* A shared library dropped in the shader directory, exporting one symbol:
*
- * const shader_plugin_t *sl0ppty_shader_plugin(void);
+ * const shader_plugin_t *slosh_shader_plugin(void);
*
- * SL0PPTY_SHADER_PLUGIN() writes that for you. See
+ * SLOSH_SHADER_PLUGIN() writes that for you. See
* contrib/shader-plugin/ for a complete one.
*/
@@ -146,7 +146,7 @@ typedef struct {
} shader_def_t;
typedef struct {
- uint32_t abi; /* SL0PPTY_SHADER_ABI it was built against */
+ uint32_t abi; /* SLOSH_SHADER_ABI it was built against */
uint32_t cell_size; /* the three sizes catch a plugin built against a */
uint32_t ctx_size; /* copy of this header that has drifted, which a */
uint32_t shader_size; /* version number alone would not */
@@ -155,14 +155,14 @@ typedef struct {
const shader_def_t *shaders;
} shader_plugin_t;
-#define SL0PPTY_SHADER_PLUGIN_SYM "sl0ppty_shader_plugin"
+#define SLOSH_SHADER_PLUGIN_SYM "slosh_shader_plugin"
/* Define the entry point. `defs` is a static array of shader_def_t. */
-#define SL0PPTY_SHADER_PLUGIN(bundle_name, defs) \
- const shader_plugin_t *sl0ppty_shader_plugin(void); \
- const shader_plugin_t *sl0ppty_shader_plugin(void) { \
+#define SLOSH_SHADER_PLUGIN(bundle_name, defs) \
+ const shader_plugin_t *slosh_shader_plugin(void); \
+ const shader_plugin_t *slosh_shader_plugin(void) { \
static const shader_plugin_t table = { \
- .abi = SL0PPTY_SHADER_ABI, \
+ .abi = SLOSH_SHADER_ABI, \
.cell_size = sizeof(cell_t), \
.ctx_size = sizeof(shade_ctx_t), \
.shader_size = sizeof(shader_t), \
@@ -173,4 +173,4 @@ typedef struct {
return &table; \
}
-#endif /* SL0PPTY_SHADER_ABI_H */
+#endif /* SLOSH_SHADER_ABI_H */
diff --git a/src/sl0ppty.h b/src/slosh.h
index 913e3de..834879f 100644
--- a/src/sl0ppty.h
+++ b/src/slosh.h
@@ -1,6 +1,6 @@
-/* sl0ppty — common types. See DESIGN.md. */
-#ifndef SL0PPTY_H
-#define SL0PPTY_H
+/* slosh — common types. See DESIGN.md. */
+#ifndef SLOSH_H
+#define SLOSH_H
#include <stdbool.h>
#include <stddef.h>
@@ -279,4 +279,4 @@ char *pane_selection_text(pane_t *p);
void pane_compose(pane_t *p, screen_t *s, uint16_t x0, uint16_t y0,
bool focused);
-#endif /* SL0PPTY_H */
+#endif /* SLOSH_H */
diff --git a/tests/harness.py b/tests/harness.py
index b45ef10..69be95d 100644
--- a/tests/harness.py
+++ b/tests/harness.py
@@ -1,4 +1,4 @@
-"""Drive sl0ppty's headless driver and assert on the composited screen.
+"""Drive slosh's headless driver and assert on the composited screen.
with Session(["/bin/sh", "-c", "echo hi"], cols=20, rows=3) as s:
s.settle()
@@ -14,11 +14,11 @@ import os
import subprocess
import time
-# $SL0PPTY_BIN lets the same suite drive a differently-built binary — the
+# $SLOSH_BIN lets the same suite drive a differently-built binary — the
# coverage build, say — without a second copy of the harness.
BIN = os.environ.get(
- "SL0PPTY_BIN",
- os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "build", "sl0ppty"),
+ "SLOSH_BIN",
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "build", "slosh"),
)
@@ -107,9 +107,9 @@ class Session:
self.cols, self.rows = cols, rows
environ = dict(os.environ)
if config:
- environ["SL0PPTY_CONFIG"] = str(config)
+ environ["SLOSH_CONFIG"] = str(config)
else:
- environ["SL0PPTY_CONFIG"] = "/nonexistent/sl0ppty.kdl"
+ environ["SLOSH_CONFIG"] = "/nonexistent/slosh.kdl"
if env:
environ.update(env)
cmd = [BIN, "--script", "--cols", str(cols), "--rows", str(rows)]
@@ -188,7 +188,7 @@ class Session:
self._cmd("snapshot json")
line = self.proc.stdout.readline()
if not line:
- raise RuntimeError("sl0ppty exited before answering snapshot")
+ raise RuntimeError("slosh exited before answering snapshot")
return Snapshot(json.loads(line))
def api(self, cmd, **kw):
@@ -197,7 +197,7 @@ class Session:
self._cmd(json.dumps(kw))
line = self.proc.stdout.readline()
if not line:
- raise RuntimeError("sl0ppty exited before answering " + cmd)
+ raise RuntimeError("slosh exited before answering " + cmd)
return json.loads(line)
def tabs(self):
@@ -208,7 +208,7 @@ class Session:
self._cmd("panes")
line = self.proc.stdout.readline()
if not line:
- raise RuntimeError("sl0ppty exited before answering panes")
+ raise RuntimeError("slosh exited before answering panes")
return json.loads(line)
def pane(self, n=0):
diff --git a/tests/live_input.py b/tests/live_input.py
index 6a15625..6e9c61a 100644
--- a/tests/live_input.py
+++ b/tests/live_input.py
@@ -19,7 +19,7 @@ import time
import uuid
BIN = os.environ.get(
- "SL0PPTY_BIN", os.path.join(os.path.dirname(__file__), "..", "build", "sl0ppty")
+ "SLOSH_BIN", os.path.join(os.path.dirname(__file__), "..", "build", "slosh")
)
INNER = ["--", "/bin/sh", "-c", "stty raw -echo; cat -v"]
@@ -56,7 +56,7 @@ def main():
pid, fd = pty.fork()
if pid == 0:
os.environ["TERM"] = "xterm-ghostty"
- os.environ["SL0PPTY_CONFIG"] = "/nonexistent/sl0ppty.kdl"
+ os.environ["SLOSH_CONFIG"] = "/nonexistent/slosh.kdl"
os.execv(BIN, [BIN, "-s", session] + INNER)
os._exit(127)
fcntl.ioctl(fd, termios.TIOCSWINSZ, struct.pack("HHHH", 10, 80, 0, 0))
diff --git a/tests/live_m0.py b/tests/live_m0.py
index c26b431..ff2e3c2 100644
--- a/tests/live_m0.py
+++ b/tests/live_m0.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""M0 live check: drive sl0ppty under a real pty and read the screen back.
+"""M0 live check: drive slosh under a real pty and read the screen back.
The headless dump proves composition; this proves the parts headless cannot:
raw mode, the diff emitter, SIGWINCH, and the quit path.
@@ -19,7 +19,7 @@ import time
import uuid
BIN = os.environ.get(
- "SL0PPTY_BIN", os.path.join(os.path.dirname(__file__), "..", "build", "sl0ppty")
+ "SLOSH_BIN", os.path.join(os.path.dirname(__file__), "..", "build", "slosh")
)
@@ -32,7 +32,7 @@ def spawn(cols=60, rows=12, argv=None):
pid, fd = pty.fork()
if pid == 0:
os.environ["TERM"] = "xterm-ghostty"
- os.environ["SL0PPTY_CONFIG"] = "/nonexistent/sl0ppty.kdl"
+ os.environ["SLOSH_CONFIG"] = "/nonexistent/slosh.kdl"
os.execv(BIN, [BIN, "-s", SESSION] + (argv or ["--", "/bin/sh", "-i"]))
os._exit(127)
fcntl.ioctl(fd, termios.TIOCSWINSZ, struct.pack("HHHH", rows, cols, 0, 0))
diff --git a/tests/live_reload.py b/tests/live_reload.py
index 2e57a7a..dc44d59 100644
--- a/tests/live_reload.py
+++ b/tests/live_reload.py
@@ -14,8 +14,8 @@ import time
import uuid
BIN = os.environ.get(
- "SL0PPTY_BIN",
- os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "build", "sl0ppty"),
+ "SLOSH_BIN",
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "build", "slosh"),
)
fails = 0
@@ -54,7 +54,7 @@ def wait_for_colour(session, want, timeout=5.0):
def start(session, cfg_path, extra=()):
- env = dict(os.environ, SL0PPTY_CONFIG=cfg_path)
+ env = dict(os.environ, SLOSH_CONFIG=cfg_path)
p = subprocess.Popen(
[
BIN,
diff --git a/tests/shader_plugin_test.c b/tests/shader_plugin_test.c
index 15639d6..c7ece9e 100644
--- a/tests/shader_plugin_test.c
+++ b/tests/shader_plugin_test.c
@@ -7,8 +7,8 @@
#include "shader_abi.h"
#ifdef BAD_ABI
-#undef SL0PPTY_SHADER_ABI
-#define SL0PPTY_SHADER_ABI 9999
+#undef SLOSH_SHADER_ABI
+#define SLOSH_SHADER_ABI 9999
#endif
/* Paints every cell's background the configured colour, at full strength when
@@ -32,4 +32,4 @@ static const shader_def_t SHADERS[] = {
{"teststripe", sh_stripe},
};
-SL0PPTY_SHADER_PLUGIN("test-fixture", SHADERS)
+SLOSH_SHADER_PLUGIN("test-fixture", SHADERS)
diff --git a/tests/test_check.py b/tests/test_check.py
index c531c67..d6c286e 100755
--- a/tests/test_check.py
+++ b/tests/test_check.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""`sl0ppty --check`: the config linter.
+"""`slosh --check`: the config linter.
The loader is the only checker that cannot drift from the loader, so this is a
mode rather than a script. The difference between it and a session is what they
@@ -95,16 +95,16 @@ def test_a_file_that_will_not_parse_says_nothing_applied():
def test_a_missing_file_is_a_problem_not_a_crash():
- r = run("/nonexistent/sl0ppty.kdl")
+ r = run("/nonexistent/slosh.kdl")
check("exit 1", r.returncode == 1, r.stdout)
check("and it says so", "not loaded" in r.stderr or "cannot" in r.stderr, r.stderr)
def test_without_a_path_it_checks_the_config_a_session_would_read():
good = conf("gap 3\n")
- env = dict(os.environ, SL0PPTY_CONFIG=good)
+ env = dict(os.environ, SLOSH_CONFIG=good)
r = subprocess.run([BIN, "--check"], capture_output=True, text=True, env=env)
- check("it read $SL0PPTY_CONFIG", good in r.stdout, r.stdout + r.stderr)
+ check("it read $SLOSH_CONFIG", good in r.stdout, r.stdout + r.stderr)
check("and was happy with it", r.returncode == 0, r.stderr)
diff --git a/tests/test_chrome_presets.py b/tests/test_chrome_presets.py
index b5a2170..9834586 100755
--- a/tests/test_chrome_presets.py
+++ b/tests/test_chrome_presets.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Every chrome preset in contrib/chrome/ works in sl0ppty.
+"""Every chrome preset in contrib/chrome/ works in slosh.
The content presets are cross-checked against the toy that previews them
(test_shadertoy.py). A frame has no preview — the toy draws a pane's contents —
diff --git a/tests/test_config.py b/tests/test_config.py
index f0528cc..1e4cff0 100644
--- a/tests/test_config.py
+++ b/tests/test_config.py
@@ -308,7 +308,7 @@ def test_fail_open():
[BIN, "--headless", "--cols", "20", "--rows", "3", "--", "/bin/echo", "hi"],
capture_output=True,
text=True,
- env=dict(os.environ, SL0PPTY_CONFIG=broken),
+ env=dict(os.environ, SLOSH_CONFIG=broken),
)
check(
"the reason is reported on stderr",
@@ -337,7 +337,7 @@ def test_fail_open():
[BIN, "--headless", "--cols", "20", "--rows", "3", "--", "/bin/echo", "hi"],
capture_output=True,
text=True,
- env=dict(os.environ, SL0PPTY_CONFIG=missing),
+ env=dict(os.environ, SLOSH_CONFIG=missing),
)
check("a missing config is silent", proc.stderr == "", repr(proc.stderr))
diff --git a/tests/test_docs.py b/tests/test_docs.py
index 5c7c2bb..a61e37c 100755
--- a/tests/test_docs.py
+++ b/tests/test_docs.py
@@ -31,7 +31,7 @@ DOCS = os.path.join(ROOT, "docs")
def run(outdir, docs=None, expect_ok=True):
env = dict(os.environ)
if docs:
- env["SL0PPTY_DOCS"] = docs
+ env["SLOSH_DOCS"] = docs
r = subprocess.run(
[sys.executable, GEN, outdir], capture_output=True, text=True, env=env
)
diff --git a/tests/test_dump_config.py b/tests/test_dump_config.py
index 5d38dc1..d6b3fd4 100644
--- a/tests/test_dump_config.py
+++ b/tests/test_dump_config.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""`sl0ppty --dump-config`: every setting, with its default value.
+"""`slosh --dump-config`: every setting, with its default value.
Generated from the code rather than kept as a file on disk, because a
checked-in copy of the defaults is a second source of truth and drifts — ours
@@ -26,7 +26,7 @@ SRC = os.path.join(HERE, "..", "src", "config.c")
def dump(config=None):
env = dict(os.environ)
- env["SL0PPTY_CONFIG"] = config or "/nonexistent/sl0ppty.kdl"
+ env["SLOSH_CONFIG"] = config or "/nonexistent/slosh.kdl"
return subprocess.run(
[BIN, "--dump-config"], capture_output=True, text=True, env=env
).stdout
@@ -154,7 +154,7 @@ def test_the_dump_is_a_working_config():
def test_edit_config_writes_it_when_there_is_none():
"""The reason it exists: C-a e on a fresh install opened an empty buffer,
which tells you nothing about what you can set."""
- home = tempfile.mkdtemp(prefix="sl0ppty-home-")
+ home = tempfile.mkdtemp(prefix="slosh-home-")
sh = ["/bin/sh", "-c", 'printf "\\033]2;p\\007"; read x']
# No config, and no ~/.config either: a fresh container has neither.
with Session(
@@ -162,7 +162,7 @@ def test_edit_config_writes_it_when_there_is_none():
cols=74,
rows=24,
env={"HOME": home, "EDITOR": "tail -f"},
- config=os.path.join(home, ".config", "sl0ppty", "config.kdl"),
+ config=os.path.join(home, ".config", "slosh", "config.kdl"),
) as s:
s.settle()
s.key("e")
@@ -175,7 +175,7 @@ def test_edit_config_writes_it_when_there_is_none():
snap.screen()[-400:],
)
- path = os.path.join(home, ".config", "sl0ppty", "config.kdl")
+ path = os.path.join(home, ".config", "slosh", "config.kdl")
check("and it was written, directories and all", os.path.exists(path), path)
if os.path.exists(path):
check(
@@ -186,7 +186,7 @@ def test_edit_config_writes_it_when_there_is_none():
def test_it_never_overwrites_a_config_you_already_have():
- home = tempfile.mkdtemp(prefix="sl0ppty-home-")
+ home = tempfile.mkdtemp(prefix="slosh-home-")
path = os.path.join(home, "config.kdl")
open(path, "w").write("// mine\ngap 3\n")
sh = ["/bin/sh", "-c", 'printf "\\033]2;p\\007"; read x']
diff --git a/tests/test_dump_layout.py b/tests/test_dump_layout.py
index 2d64da2..95cbdad 100644
--- a/tests/test_dump_layout.py
+++ b/tests/test_dump_layout.py
@@ -2,7 +2,7 @@
"""Writing a session back out as a layout, and getting it back.
This is what makes a restart survivable: build a new binary, dump what you
-have, quit, come back with --layout. contrib/sl0ppty-dev is that loop.
+have, quit, come back with --layout. contrib/slosh-dev is that loop.
The only assertion worth much here is the round trip. A dump that *looks*
right and rebuilds a different tree is exactly the failure this would have —
diff --git a/tests/test_hints.py b/tests/test_hints.py
index 61349a7..792c3a0 100644
--- a/tests/test_hints.py
+++ b/tests/test_hints.py
@@ -175,8 +175,8 @@ def test_it_stays_put_when_the_ends_change_length():
s.api("set-purpose", target="tab", id=s.tabs()[0]["id"], purpose=name)
s.settle(20)
row = bar(s)
- check(f"the banner is up with {name!r}", "sl0ppty 0." in row, row)
- seen.add(row.index("sl0ppty 0."))
+ check(f"the banner is up with {name!r}", "slosh 0." in row, row)
+ seen.add(row.index("slosh 0."))
check("and in the same column every time", len(seen) == 1, str(seen))
@@ -212,7 +212,7 @@ def test_it_keeps_a_blank_column_on_each_side():
with Session(SH, cols=96, rows=18) as s:
s.settle(20)
row = bar(s)
- at = row.index("sl0ppty 0.")
+ at = row.index("slosh 0.")
end = at + len(row[at:].split(" ")[0])
check("a gap before it", row[at - 1] == " ", repr(row[at - 4 : at + 4]))
check("a gap after it", row[end] == " ", repr(row[end - 4 : end + 4]))
@@ -225,20 +225,20 @@ def test_the_version_sits_in_the_slot_when_no_hint_does():
started with."""
with Session(SH, cols=96, rows=18) as s:
s.settle(20)
- check("the banner is there by default", "sl0ppty 0." in bar(s), bar(s))
+ check("the banner is there by default", "slosh 0." in bar(s), bar(s))
s.api("split", dir="cols")
s.settle(20)
h = hit(s, "close:")
hover(s, h["x"], h["y"])
check("a hint takes the slot back", "close this pane" in bar(s), bar(s))
- check("and the banner gives way", "sl0ppty 0." not in bar(s), bar(s))
+ check("and the banner gives way", "slosh 0." not in bar(s), bar(s))
hover(s, h["x"], h["y"] + 4) # off the button, into the pane
s.settle(20)
check(
"the banner returns when the pointer moves off",
- "sl0ppty 0." in bar(s),
+ "slosh 0." in bar(s),
bar(s),
)
@@ -247,7 +247,7 @@ def test_the_banner_and_the_hints_are_separate_knobs():
off = cfg("version_banner false\n")
with Session(SH, cols=96, rows=18, config=off) as s:
s.settle(20)
- check("version_banner false says nothing", "sl0ppty" not in bar(s), bar(s))
+ check("version_banner false says nothing", "slosh" not in bar(s), bar(s))
s.api("split", dir="cols")
s.settle(20)
h = hit(s, "close:")
@@ -258,12 +258,12 @@ def test_the_banner_and_the_hints_are_separate_knobs():
nohints = cfg("hints false\n")
with Session(SH, cols=96, rows=18, config=nohints) as s:
s.settle(20)
- check("hints false leaves the banner alone", "sl0ppty 0." in bar(s), bar(s))
+ check("hints false leaves the banner alone", "slosh 0." in bar(s), bar(s))
s.api("split", dir="cols")
s.settle(20)
h = hit(s, "close:")
hover(s, h["x"], h["y"])
- check("and nothing replaces it", "sl0ppty 0." in bar(s), bar(s))
+ check("and nothing replaces it", "slosh 0." in bar(s), bar(s))
os.unlink(nohints)
diff --git a/tests/test_layout_files.py b/tests/test_layout_files.py
index 236fcbd..7bc8285 100644
--- a/tests/test_layout_files.py
+++ b/tests/test_layout_files.py
@@ -197,7 +197,7 @@ def test_cwd_expands_a_tilde():
Unexpanded it reached chdir() literally, failed, and left the pane in
whatever directory the session was started from — with the pane running,
so nothing looked wrong until you typed `ls`."""
- home = tempfile.mkdtemp(prefix="sl0ppty-home-")
+ home = tempfile.mkdtemp(prefix="slosh-home-")
text = """
layout {
tab name="t" {
diff --git a/tests/test_osc5577.py b/tests/test_osc5577.py
index 64631c4..0a58b5b 100644
--- a/tests/test_osc5577.py
+++ b/tests/test_osc5577.py
@@ -346,7 +346,7 @@ def test_hello_handshake():
out = s.snapshot().pane_text(s.pane())
check(
"hello is answered with an implementation and a version",
- "5577;1;hello-reply;sl0ppty;1" in out,
+ "5577;1;hello-reply;slosh;1" in out,
repr(out[:120]),
)
@@ -364,10 +364,18 @@ def test_a_reply_is_not_a_request():
s.settle()
time.sleep(0.5) # real time: a loop needs none of our help to run
out = s.snapshot().pane_text(s.pane())
+ # The one answer can appear on screen twice: `cat -v` prints it, and if
+ # it arrived before the pane's `stty -echo` took effect, ECHOCTL echoed
+ # it too, as the same printable `^[`. Both are one reply, displayed by
+ # the pane's own doing; a loop is hundreds. Count on de-wrapped text --
+ # at 60 columns the second copy can straddle a line break, which is how
+ # a seven-character implementation name hid it from this count and made
+ # `== 1` pass for the wrong reason.
+ n = out.replace("\n", "").count("hello-reply")
check(
"a reply the pane echoes back is not answered again",
- out.count("hello-reply") == 1,
- repr(out[:200]),
+ 1 <= n <= 2,
+ "%d copies: %r" % (n, out[:200]),
)
check(
"and the pane is still usable afterwards",
diff --git a/tests/test_portable_layouts.py b/tests/test_portable_layouts.py
index 202f9e1..02c43d2 100644
--- a/tests/test_portable_layouts.py
+++ b/tests/test_portable_layouts.py
@@ -24,10 +24,10 @@ SH = ["/bin/sh", "-c", "read x"]
def project(name, text):
"""A directory with a layout file in it, the way a checkout would have."""
- root = tempfile.mkdtemp(prefix="sl0ppty-proj-")
+ root = tempfile.mkdtemp(prefix="slosh-proj-")
d = os.path.join(root, name)
os.makedirs(os.path.join(d, "src"))
- path = os.path.join(d, "sl0ppty.layout.kdl")
+ path = os.path.join(d, "slosh.layout.kdl")
with open(path, "w") as f:
f.write(text)
return d, path
@@ -278,7 +278,7 @@ layout {
check("it names: " + want, want in said, said)
check(
"every problem carries a file and a line",
- said.count("sl0ppty.layout.kdl:") >= 6,
+ said.count("slosh.layout.kdl:") >= 6,
said,
)
@@ -325,7 +325,7 @@ def test_a_syntax_error_in_a_layout_is_reported_as_the_layout_it_is():
code, said = lint(path)
check(
"it says which file and which line the syntax broke on",
- "sl0ppty.layout.kdl:" in said and "unclosed" in said,
+ "slosh.layout.kdl:" in said and "unclosed" in said,
said,
)
check(
diff --git a/tests/test_reload.py b/tests/test_reload.py
index e4973a5..80a7086 100644
--- a/tests/test_reload.py
+++ b/tests/test_reload.py
@@ -100,11 +100,11 @@ def test_a_config_written_after_the_session_started_is_noticed():
but a directory that does not exist cannot be watched at all, and then
nothing is ever noticed for the life of the session. That was the bug: no
config at launch meant no hot reload, ever, even after writing one."""
- home = tempfile.mkdtemp(prefix="sl0ppty-home-")
- path = os.path.join(home, ".config", "sl0ppty", "config.kdl")
+ home = tempfile.mkdtemp(prefix="slosh-home-")
+ path = os.path.join(home, ".config", "slosh", "config.kdl")
check("the directory really is missing", not os.path.isdir(os.path.dirname(path)))
- env = dict(os.environ, SL0PPTY_CONFIG=path)
+ env = dict(os.environ, SLOSH_CONFIG=path)
name = "reloadtest-%d" % os.getpid()
subprocess.run(
[BIN, "-s", name, "--", "/bin/sh", "-c", "read x"],
@@ -162,8 +162,8 @@ def test_an_included_file_is_watched_too():
so the watch covers every file the config was built from -- not only the one
the session was started with. Driven through a real session, because the
watcher is the thing under test and the headless driver has none."""
- home = tempfile.mkdtemp(prefix="sl0ppty-inc-")
- cfgdir = os.path.join(home, ".config", "sl0ppty")
+ home = tempfile.mkdtemp(prefix="slosh-inc-")
+ cfgdir = os.path.join(home, ".config", "slosh")
os.makedirs(os.path.join(cfgdir, "themes"))
main = os.path.join(cfgdir, "config.kdl")
theme = os.path.join(cfgdir, "themes", "t.kdl")
@@ -172,7 +172,7 @@ def test_an_included_file_is_watched_too():
with open(theme, "w") as f:
f.write('theme { frame_focus "#00ff00" }\n')
- env = dict(os.environ, SL0PPTY_CONFIG=main)
+ env = dict(os.environ, SLOSH_CONFIG=main)
name = "inctest-%d" % os.getpid()
subprocess.run(
[BIN, "-s", name, "--", "/bin/sh", "-c", "read x"],
diff --git a/tests/test_session.py b/tests/test_session.py
index cd6ab58..5f7bd84 100644
--- a/tests/test_session.py
+++ b/tests/test_session.py
@@ -18,8 +18,8 @@ import time
import uuid
BIN = os.environ.get(
- "SL0PPTY_BIN",
- os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "build", "sl0ppty"),
+ "SLOSH_BIN",
+ os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "build", "slosh"),
)
fails = 0
@@ -37,7 +37,7 @@ def attach(name, cols=80, rows=24, inner=None):
pid, fd = pty.fork()
if pid == 0:
os.environ["TERM"] = "xterm-ghostty"
- os.environ["SL0PPTY_CONFIG"] = "/nonexistent/sl0ppty.kdl"
+ os.environ["SLOSH_CONFIG"] = "/nonexistent/slosh.kdl"
args = [BIN, "-s", name]
if inner:
args += ["--"] + inner
diff --git a/tests/test_shader_plugin.py b/tests/test_shader_plugin.py
index cd7e9bd..26bec57 100644
--- a/tests/test_shader_plugin.py
+++ b/tests/test_shader_plugin.py
@@ -29,7 +29,7 @@ SH = ["/bin/sh", "-c", 'printf "\\033]2;p\\007"; printf "BLOCK\\n"; read x']
def session_dir(plugins, config, shaders_subdir=False):
"""A config file, and the plugins it should find beside it."""
- d = tempfile.mkdtemp(prefix="sl0ppty-plug-")
+ d = tempfile.mkdtemp(prefix="slosh-plug-")
dest = os.path.join(d, "shaders") if shaders_subdir else d
os.makedirs(dest, exist_ok=True)
for p in plugins:
@@ -137,7 +137,7 @@ def test_no_shader_directory_at_all_is_normal():
cfg, d = session_dir([], "")
with open(cfg, "w") as f:
f.write(
- 'shader_dir "/nonexistent/sl0ppty/shaders"\n'
+ 'shader_dir "/nonexistent/slosh/shaders"\n'
"shaders {\n dim amount=100\n}\n"
)
diff --git a/tests/test_shader_presets.py b/tests/test_shader_presets.py
index 504a8f6..b7aeafb 100644
--- a/tests/test_shader_presets.py
+++ b/tests/test_shader_presets.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""Every shader in contrib/shaders/ works in sl0ppty.
+"""Every shader in contrib/shaders/ works in slosh.
The toy proves the *language* matches (test_shadertoy.py). This proves the
shipped files: that each one parses as config, is accepted by the shader
@@ -140,7 +140,7 @@ def test_the_tour_can_name_every_one_of_them():
tour = os.path.join(CONTRIB, "shader-tour")
conf = tempfile.NamedTemporaryFile("w", suffix=".kdl", delete=False)
conf.close()
- env = dict(os.environ, SL0PPTY_CONFIG=conf.name)
+ env = dict(os.environ, SLOSH_CONFIG=conf.name)
# Named explicitly rather than derived: a group name with a hyphen in it
# (built-ins) makes "the short half" ambiguous to compute and easy to get
diff --git a/tests/test_shader_repl.py b/tests/test_shader_repl.py
index 11a1749..523b498 100755
--- a/tests/test_shader_repl.py
+++ b/tests/test_shader_repl.py
@@ -178,7 +178,7 @@ def test_history_survives_the_next_run():
fill."""
path = cfg("in_band_shaders true\n")
home = tempfile.mkdtemp()
- hist = os.path.join(home, "sl0ppty", "shader-repl.history")
+ hist = os.path.join(home, "slosh", "shader-repl.history")
with session(path, home) as s:
s.until_text("chrome>")
diff --git a/tests/test_shadertoy.py b/tests/test_shadertoy.py
index 90937d9..a9cd9a7 100644
--- a/tests/test_shadertoy.py
+++ b/tests/test_shadertoy.py
@@ -235,7 +235,7 @@ def rand_exprs(n, seed=20260814):
def c_values(pairs):
- """Every (env, expr) through the compiler sl0ppty actually uses."""
+ """Every (env, expr) through the compiler slosh actually uses."""
lines = []
for env, expr in pairs:
vals = " ".join(
diff --git a/tests/test_skill.py b/tests/test_skill.py
index 43380a4..016c757 100755
--- a/tests/test_skill.py
+++ b/tests/test_skill.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""`.agents/skills/driving-sl0ppty/SKILL.md`: the agent-facing interface, checked.
+"""`.agents/skills/driving-slosh/SKILL.md`: the agent-facing interface, checked.
A skill is documentation an agent acts on without a human reading it first, which
makes a stale one worse than a missing one: a wrong verb becomes a failed tool call
@@ -22,7 +22,7 @@ sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from harness import BIN, Session, check, report
ROOT = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
-SKILL = os.path.join(ROOT, ".agents", "skills", "driving-sl0ppty", "SKILL.md")
+SKILL = os.path.join(ROOT, ".agents", "skills", "driving-slosh", "SKILL.md")
SH = ["/bin/sh", "-c", "read x"]
@@ -36,11 +36,11 @@ def test_the_skill_is_where_agents_look_for_it():
body = text()
check("it opens with YAML frontmatter", body.startswith("---\n"), body[:40])
fm = body.split("---")[1]
- check("naming itself for its directory", "name: driving-sl0ppty" in fm, fm)
+ check("naming itself for its directory", "name: driving-slosh" in fm, fm)
check("and saying when it applies", "description:" in fm, fm)
# The description is what a harness matches on, so it has to mention the
# things a user would say.
- for word in ("sl0ppty", "pane", "workspace", "SL0PPTY"):
+ for word in ("slosh", "pane", "workspace", "SLOSH"):
check("the description mentions " + word, word in fm, fm)
@@ -69,7 +69,7 @@ def test_every_verb_it_names_is_a_verb_the_program_has():
def test_the_environment_it_promises_is_the_environment_panes_get():
body = text()
- for var in ("SL0PPTY", "SL0PPTY_SESSION", "SL0PPTY_BIN"):
+ for var in ("SLOSH", "SLOSH_SESSION", "SLOSH_BIN"):
check("the skill documents " + var, var in body, "missing " + var)
# Started from an environment that already names a session and a binary,
@@ -79,11 +79,11 @@ def test_the_environment_it_promises_is_the_environment_panes_get():
# panes the outer session's name and a script in there sends its commands
# somewhere else. Passing the lie in makes the difference visible from any
# shell, rather than only from one that happens to have them set.
- lie = {"SL0PPTY_SESSION": "somebody-elses-session", "SL0PPTY_BIN": "/nope/x"}
+ lie = {"SLOSH_SESSION": "somebody-elses-session", "SLOSH_BIN": "/nope/x"}
probe = [
"/bin/sh",
"-c",
- 'echo "V=[$SL0PPTY] S=[$SL0PPTY_SESSION] B=[$SL0PPTY_BIN]"; read x',
+ 'echo "V=[$SLOSH] S=[$SLOSH_SESSION] B=[$SLOSH_BIN]"; read x',
]
with Session(probe, cols=120, rows=8, env=lie) as s:
s.until_text("V=[")
@@ -99,7 +99,7 @@ def test_the_environment_it_promises_is_the_environment_panes_get():
)
check(
"the binary is the one that made the pane, not an inherited path",
- "/nope/x" not in screen and "sl0ppty" in screen.split("B=[")[1],
+ "/nope/x" not in screen and "slosh" in screen.split("B=[")[1],
screen,
)
flat = " ".join(body.split()) # the file is wrapped; the claim is not
@@ -114,10 +114,10 @@ def test_a_real_session_names_itself_to_its_panes():
"""The other half, and the reason `--script` clearing it is not just
`unsetenv` everywhere: a session *does* tell its panes which one it is, and it
is its own name even when it was started from inside another session."""
- out = os.path.join(tempfile.mkdtemp(prefix="sl0ppty-env-"), "seen")
+ out = os.path.join(tempfile.mkdtemp(prefix="slosh-env-"), "seen")
name = "envclaim-%d" % os.getpid()
env = dict(os.environ)
- env["SL0PPTY_SESSION"] = "somebody-elses-session"
+ env["SLOSH_SESSION"] = "somebody-elses-session"
try:
subprocess.run(
[
@@ -127,7 +127,7 @@ def test_a_real_session_names_itself_to_its_panes():
"--",
"/bin/sh",
"-c",
- 'echo "S=[$SL0PPTY_SESSION]" > %s; read x' % out,
+ 'echo "S=[$SLOSH_SESSION]" > %s; read x' % out,
],
capture_output=True,
text=True,
@@ -223,7 +223,7 @@ def test_it_is_free_of_this_machine():
check("no path from the machine it was written on", not bad, str(set(bad)))
check(
"it reaches the binary through the environment",
- "SL0PPTY_BIN" in body and "not on your `PATH`" in body,
+ "SLOSH_BIN" in body and "not on your `PATH`" in body,
"no PATH note",
)
@@ -251,7 +251,7 @@ def test_the_skill_is_reachable_from_the_docs_people_read():
):
with open(path) as f:
body = f.read()
- check("%s points at the skill" % what, "driving-sl0ppty" in body, path)
+ check("%s points at the skill" % what, "driving-slosh" in body, path)
if __name__ == "__main__":
diff --git a/tests/test_states.py b/tests/test_states.py
index bd2ab5d..ce32ac3 100644
--- a/tests/test_states.py
+++ b/tests/test_states.py
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""What sl0ppty says, out of the box, about a pane you are not in.
+"""What slosh says, out of the box, about a pane you are not in.
Three states mean "these cells are not a running program's present": its
program exited, it never started, or you are looking at the past. None of them
@@ -28,7 +28,7 @@ SH = [
]
# Only the theme, so "what colour is this cell" has one answer. No states: the
-# point is what sl0ppty does when you have said nothing.
+# point is what slosh does when you have said nothing.
CFG = None
diff --git a/tests/test_wide_marks.py b/tests/test_wide_marks.py
index 91169b7..9438a64 100644
--- a/tests/test_wide_marks.py
+++ b/tests/test_wide_marks.py
@@ -58,7 +58,7 @@ def run(mark, cols=100, rows=14):
],
input=b"settle 250\npanes\nsnapshot json\n",
capture_output=True,
- env={**os.environ, "SL0PPTY_CONFIG": cfg.name},
+ env={**os.environ, "SLOSH_CONFIG": cfg.name},
)
os.unlink(lay.name)
os.unlink(cfg.name)
diff --git a/tests/test_workspaces.py b/tests/test_workspaces.py
index 825f7f7..3a0163d 100644
--- a/tests/test_workspaces.py
+++ b/tests/test_workspaces.py
@@ -1,6 +1,6 @@
"""Workspaces: projects on disk, and the tabs they open as.
-A *project* is a directory somebody works in -- one with a `sl0ppty.layout.kdl`
+A *project* is a directory somebody works in -- one with a `slosh.layout.kdl`
saying what it needs, or a `.git` and nothing said yet. A *workspace* is the tab
it occupies here, and membership is that tab's `purpose` in the `project:`
namespace, so there is no second answer to "what is this tab" and a dumped
@@ -40,7 +40,7 @@ def roots(**projects):
Values: layout text (a declared project), "git" (a `.git` and nothing else),
or None (a directory that is neither, which must not be listed).
"""
- base = tempfile.mkdtemp(prefix="sl0ppty-ws-")
+ base = tempfile.mkdtemp(prefix="slosh-ws-")
dev = os.path.join(base, "dev")
for name, what in projects.items():
d = os.path.join(dev, *name.split("__"))
@@ -48,7 +48,7 @@ def roots(**projects):
if what == "git":
os.makedirs(os.path.join(d, ".git"), exist_ok=True)
elif what:
- with open(os.path.join(d, "sl0ppty.layout.kdl"), "w") as f:
+ with open(os.path.join(d, "slosh.layout.kdl"), "w") as f:
f.write(what)
cfg = os.path.join(base, "config.kdl")
with open(cfg, "w") as f:
@@ -82,7 +82,7 @@ def test_a_project_is_a_layout_file_or_a_git():
check("a directory that is neither is not listed", "notes" not in got, str(got))
check(
"the declared one names its file",
- got["api"]["layout"].endswith("sl0ppty.layout.kdl"),
+ got["api"]["layout"].endswith("slosh.layout.kdl"),
str(got["api"]),
)
check(
@@ -303,7 +303,7 @@ def test_saving_a_tab_writes_a_portable_layout_file():
saved = s.api("save-workspace")
check(
"it says where it wrote",
- saved["path"] == os.path.join(dev, "web", "sl0ppty.layout.kdl"),
+ saved["path"] == os.path.join(dev, "web", "slosh.layout.kdl"),
str(saved),
)
check(
@@ -554,7 +554,7 @@ def test_every_verb_has_a_bare_form():
wrote = bare1(s, "save-workspace")
check(
"save-workspace names the file it wrote",
- "sl0ppty.layout.kdl" in wrote,
+ "slosh.layout.kdl" in wrote,
repr(wrote),
)
check(
@@ -609,9 +609,7 @@ def test_the_picker_lists_projects_and_opens_one():
s.key("w")
screen = s.snapshot().screen()
check("it is titled as projects", "projects" in screen, screen)
- check(
- "a declared project shows its file", "sl0ppty.layout.kdl" in screen, screen
- )
+ check("a declared project shows its file", "slosh.layout.kdl" in screen, screen)
check("and one without says so", "no layout" in screen, screen)
s.send("web")
@@ -651,11 +649,11 @@ def test_saving_from_the_keyboard_says_what_it_did():
s.api("open-workspace", name="web")
s.key("W")
screen = s.snapshot().screen()
- check("the toast names the file", "sl0ppty.layout.kdl" in screen, screen)
+ check("the toast names the file", "slosh.layout.kdl" in screen, screen)
check("and counts what it wrote", "1 pane" in screen, screen)
check(
"the file is there",
- os.path.exists(os.path.join(dev, "web", "sl0ppty.layout.kdl")),
+ os.path.exists(os.path.join(dev, "web", "slosh.layout.kdl")),
screen,
)
diff --git a/vendor/libghostty-vt/src/terminal/Terminal.zig b/vendor/libghostty-vt/src/terminal/Terminal.zig
index e10132a..6f5cc19 100644
--- a/vendor/libghostty-vt/src/terminal/Terminal.zig
+++ b/vendor/libghostty-vt/src/terminal/Terminal.zig
@@ -3346,7 +3346,7 @@ pub fn eraseDisplay(
// with `a=p` per frame, and freeing the data on a screen clear
// makes every later placement of that id draw nothing. The
// storage limit (320MB, LRU) is what bounds this, which is why
- // it exists. sl0ppty patch; see vendor/patches.
+ // it exists. slosh patch; see vendor/patches.
self.screens.active.kitty_images.delete(
self.io(),
self.screens.active.alloc,
@@ -3409,7 +3409,7 @@ pub fn eraseDisplay(
// with `a=p` per frame, and freeing the data on a screen clear
// makes every later placement of that id draw nothing. The
// storage limit (320MB, LRU) is what bounds this, which is why
- // it exists. sl0ppty patch; see vendor/patches.
+ // it exists. slosh patch; see vendor/patches.
self.screens.active.kitty_images.delete(
self.io(),
self.screens.active.alloc,
diff --git a/vendor/patches/0001-keep-kitty-images-across-a-screen-clear.patch b/vendor/patches/0001-keep-kitty-images-across-a-screen-clear.patch
index e5781a6..905cb50 100644
--- a/vendor/patches/0001-keep-kitty-images-across-a-screen-clear.patch
+++ b/vendor/patches/0001-keep-kitty-images-across-a-screen-clear.patch
@@ -12,7 +12,7 @@ index b157994..e10132a 100644
+ // with `a=p` per frame, and freeing the data on a screen clear
+ // makes every later placement of that id draw nothing. The
+ // storage limit (320MB, LRU) is what bounds this, which is why
-+ // it exists. sl0ppty patch; see vendor/patches.
++ // it exists. slosh patch; see vendor/patches.
self.screens.active.kitty_images.delete(
self.io(),
self.screens.active.alloc,
@@ -32,7 +32,7 @@ index b157994..e10132a 100644
+ // with `a=p` per frame, and freeing the data on a screen clear
+ // makes every later placement of that id draw nothing. The
+ // storage limit (320MB, LRU) is what bounds this, which is why
-+ // it exists. sl0ppty patch; see vendor/patches.
++ // it exists. slosh patch; see vendor/patches.
self.screens.active.kitty_images.delete(
self.io(),
self.screens.active.alloc,