aboutsummaryrefslogtreecommitdiffstats
path: root/src/headless.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/headless.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/headless.c')
-rw-r--r--src/headless.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/headless.c b/src/headless.c
index bceb579..dab817d 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 "sl0ptty.h"
+#include "sl0ppty.h"
#include <poll.h>
#include <stdio.h>
@@ -54,13 +54,13 @@ int run_headless(const char *const argv[], uint16_t cols, uint16_t rows,
int idle_ms, bool script, const char *layout) {
app_t *a = app_new(argv, cols, rows);
if (!a) {
- fprintf(stderr, "sl0ptty: cannot spawn pane\n");
+ fprintf(stderr, "sl0ppty: 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, "sl0ptty: %s: %s\n", layout, err[0] ? err : "bad layout");
+ fprintf(stderr, "sl0ppty: %s: %s\n", layout, err[0] ? err : "bad layout");
}
app_resize(a, cols, rows);
screen_t s;
@@ -93,7 +93,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, "sl0ptty: unknown command: %s\n", line);
+ fprintf(stderr, "sl0ppty: unknown command: %s\n", line);
continue;
}
/* Only commands that answer print a line, so the harness stays in step. */