aboutsummaryrefslogtreecommitdiffstats
path: root/src/server.c
diff options
context:
space:
mode:
authoruser <user@clank>2026-08-14 12:13:18 +0200
committeruser <user@clank>2026-08-14 12:13:18 +0200
commit20f269a0cdf65f196aea09f0279f5927f26d8192 (patch)
treecc0c10c3556b36d0234a64acf1a48da356a4a212 /src/server.c
parentsl0ptty: kitty graphics passthrough (diff)
downloadslosh-20f269a0cdf65f196aea09f0279f5927f26d8192.tar.gz
slosh-20f269a0cdf65f196aea09f0279f5927f26d8192.tar.xz
slosh-20f269a0cdf65f196aea09f0279f5927f26d8192.zip
sl0ppty: rename from sl0ptty
A pty is a pseudo-terminal, and that is what this multiplexes: the extra t was never standing for anything. Renaming now, while the only users are the people who typed the old name on purpose, is cheaper than renaming later. Mechanical, but not only cosmetic. The name is also the runtime contract, so this moves $SL0PTTY and $SL0PTTY_CONFIG, ~/.config/sl0ptty/config.kdl, the socket directory ($XDG_RUNTIME_DIR/sl0ptty, /tmp/sl0ptty-<uid>), and the identity string a program gets back from an OSC 5577 hello. A session left running under the old binary keeps its old socket directory and is invisible to the new one; there is no migration and it does not seem worth writing one. The sl0ppi fork keeps its name: it is a different thing, and D1 still points at it.
Diffstat (limited to 'src/server.c')
-rw-r--r--src/server.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/server.c b/src/server.c
index 17ce05a..b372821 100644
--- a/src/server.c
+++ b/src/server.c
@@ -40,7 +40,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 sl0ptty replaces had a
+ * This distinction is not fussiness. The zellij fork sl0ppty 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
@@ -176,7 +176,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, "sl0ptty: cannot listen on %s: %s\n", path, strerror(errno));
+ fprintf(stderr, "sl0ppty: cannot listen on %s: %s\n", path, strerror(errno));
return 1;
}
@@ -192,7 +192,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, "sl0ptty: %s: %s\n", layout, err[0] ? err : "bad layout");
+ fprintf(stderr, "sl0ppty: %s: %s\n", layout, err[0] ? err : "bad layout");
}
app_resize(s.app, cols, rows);
screen_init(&s.screen, cols, rows);