aboutsummaryrefslogtreecommitdiffstats
path: root/src
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 /src
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.
Diffstat (limited to 'src')
-rw-r--r--src/render.c8
1 files changed, 2 insertions, 6 deletions
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);