From: Robert Pengelly Date: Sun, 18 Oct 2026 12:29:01 +0000 (+0100) Subject: Clear terminal screen and scrollback on emulator startup X-Git-Url: https://git.candlhat.org/?a=commitdiff_plain;h=fece7081bdd1e5b45a1608317277a944ce44f4ac;p=dosemu.git Clear terminal screen and scrollback on emulator startup --- diff --git a/interrupts.c b/interrupts.c index 8ceabe5..9c4ed28 100644 --- a/interrupts.c +++ b/interrupts.c @@ -6080,8 +6080,8 @@ static void bios_video_initialize (void) { bios_video_initialized = 1; - /* The BIOS text screen starts blank; remove any previous host output. */ - fputs ("\033[2J\033[H", stdout); + /* Start with a clean DOS text screen instead of retaining host scrollback. */ + fputs ("\033[2J\033[3J\033[H", stdout); fflush (stdout); }