projects
/
dosemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1eb68a5
)
Clear host terminal only on DOS full-screen clear requests
author
Robert Pengelly
<robertapengelly@hotmail.com>
Sun, 18 Oct 2026 12:41:54 +0000
(13:41 +0100)
committer
Robert Pengelly
<robertapengelly@hotmail.com>
Sun, 18 Oct 2026 12:41:54 +0000
(13:41 +0100)
interrupts.c
patch
|
blob
|
history
diff --git
a/interrupts.c
b/interrupts.c
index 4e51860f4185e4948863c25c0105371c2caf5ae8..b8d8cdb0e473745965203fcd8d30b84fe67c70d4 100644
(file)
--- a/
interrupts.c
+++ b/
interrupts.c
@@
-6083,10
+6083,6
@@
static void bios_video_initialize (void) {
}
bios_video_initialized = 1;
-
- /* Start with a clean DOS text screen instead of retaining host scrollback. */
- fputs ("\033[2J\033[3J\033[H", stdout);
- fflush (stdout);
}
@@
-6246,6
+6242,10
@@
static void int_10 (CPU8086 *cpu) {
}
+ if (lines == 0 && top == 0 && left == 0 && bottom == 24 && right == 79) {
+ fputs ("\033[2J\033[3J\033[H", stdout);
+ }
+
fputs ("\0337\033[?7l", stdout);
for (row = top; row <= bottom; row++) {