aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorgbc dev <gbc@localhost>2026-07-15 10:33:48 +0200
committergbc dev <gbc@localhost>2026-07-15 10:33:48 +0200
commit63597fab346410974053294ec8f7103490b79ff5 (patch)
treefd1e1c0272a0751e790ce45269df4242da214512
parentgbhud: live joypad display (cute Game Boy layout, buttons light up) (diff)
downloadsl0pboy-63597fab346410974053294ec8f7103490b79ff5.tar.gz
sl0pboy-63597fab346410974053294ec8f7103490b79ff5.tar.xz
sl0pboy-63597fab346410974053294ec8f7103490b79ff5.zip
render: no status line in sixel mode (pure graphics output only)
In --sixel mode the emulator drew a status line (title/skip/[f]ast/q:quit) under the image; drop it so sixel output is nothing but the game graphics.
-rw-r--r--core.3311624bin0 -> 11264000 bytes
-rw-r--r--core.3316655bin0 -> 11264000 bytes
-rw-r--r--core.3321670bin0 -> 11264000 bytes
-rw-r--r--core.3326764bin0 -> 11264000 bytes
-rw-r--r--src/render.c8
5 files changed, 2 insertions, 6 deletions
diff --git a/core.3311624 b/core.3311624
new file mode 100644
index 0000000..6558608
--- /dev/null
+++ b/core.3311624
Binary files differ
diff --git a/core.3316655 b/core.3316655
new file mode 100644
index 0000000..a52e482
--- /dev/null
+++ b/core.3316655
Binary files differ
diff --git a/core.3321670 b/core.3321670
new file mode 100644
index 0000000..f5cc42a
--- /dev/null
+++ b/core.3321670
Binary files differ
diff --git a/core.3326764 b/core.3326764
new file mode 100644
index 0000000..c1a0e8c
--- /dev/null
+++ b/core.3326764
Binary files differ
diff --git a/src/render.c b/src/render.c
index 2320f02..76a4ad0 100644
--- a/src/render.c
+++ b/src/render.c
@@ -182,12 +182,8 @@ static void render_frame_sixel(GB *gb) {
}
o += sprintf(o, "\x1b\\"); // ST: end sixel
- // status line just below the image
- o += sprintf(o, "\r\n\x1b[38;2;150;150;150m %.*s skip:%d%s "
- "[f]ast [ ][ ] q:quit\x1b[0m\x1b[K",
- 12, gb->cart.title, hud_frameskip,
- hud_turbo ? " TURBO" : "");
-
+ // In sixel mode we emit only the graphics - no status line / HUD text, so
+ // the terminal shows nothing but the game image.
need_full = false;
fwrite(sixel_buf, 1, o - sixel_buf, stdout);
fflush(stdout);