From 63597fab346410974053294ec8f7103490b79ff5 Mon Sep 17 00:00:00 2001 From: gbc dev Date: Wed, 15 Jul 2026 10:33:48 +0200 Subject: 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. --- core.3311624 | Bin 0 -> 11264000 bytes core.3316655 | Bin 0 -> 11264000 bytes core.3321670 | Bin 0 -> 11264000 bytes core.3326764 | Bin 0 -> 11264000 bytes src/render.c | 8 ++------ 5 files changed, 2 insertions(+), 6 deletions(-) create mode 100644 core.3311624 create mode 100644 core.3316655 create mode 100644 core.3321670 create mode 100644 core.3326764 diff --git a/core.3311624 b/core.3311624 new file mode 100644 index 0000000..6558608 Binary files /dev/null and b/core.3311624 differ diff --git a/core.3316655 b/core.3316655 new file mode 100644 index 0000000..a52e482 Binary files /dev/null and b/core.3316655 differ diff --git a/core.3321670 b/core.3321670 new file mode 100644 index 0000000..f5cc42a Binary files /dev/null and b/core.3321670 differ diff --git a/core.3326764 b/core.3326764 new file mode 100644 index 0000000..c1a0e8c Binary files /dev/null and b/core.3326764 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); -- cgit v1.3.1-sl0p