aboutsummaryrefslogtreecommitdiffstats
path: root/gbctl
diff options
context:
space:
mode:
Diffstat (limited to 'gbctl')
-rwxr-xr-xgbctl6
1 files changed, 3 insertions, 3 deletions
diff --git a/gbctl b/gbctl
index b926461..ce8ba15 100755
--- a/gbctl
+++ b/gbctl
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
-"""gbctl — drive the gbc emulator's socket control/debug channel from the CLI.
+"""gbctl — drive the sl0pboy emulator's socket control/debug channel from the CLI.
Model mirrors gdb-driver: spawn a tmux pane running the emulator with a control
socket, then drive it with terse verbs, then stop. Socket auto-resolves to the
@@ -25,7 +25,7 @@ single live instance (else pass --sock / set GBCTL_SOCK).
import json, os, re, socket, subprocess, sys, time, glob
HERE = os.path.dirname(os.path.abspath(__file__))
-BIN = os.path.join(HERE, "build", "gbc")
+BIN = os.path.join(HERE, "build", "sl0pboy")
REGDIR = os.path.join(os.environ.get("XDG_RUNTIME_DIR", "/tmp"), "gbctl")
# ---------------------------------------------------------------------------
@@ -202,7 +202,7 @@ def cmd_spawn(argv):
cmd = [BIN, "--sock", sock_path] + emu_args + [rom] # ROM is the final arg
# exec via a shell wrapper so the pane stays around & shows a title
- shell_cmd = "printf '\\033]2;gbc %s\\007'; exec %s" % (
+ shell_cmd = "printf '\\033]2;sl0pboy %s\\007'; exec %s" % (
os.path.basename(rom), " ".join(_shquote(c) for c in cmd))
if split == "window":
r = subprocess.run(["tmux", "new-window", "-P", "-F", "#{pane_id}",