From c39fc4010dc311b89224333723d996c89c37a249 Mon Sep 17 00:00:00 2001 From: Irmen de Jong Date: Mon, 14 Dec 2020 14:28:53 +0100 Subject: [PATCH] textio.clear_screen() now uses kernal routine to clear the text screen, this also resets the cursor to top left. --- compiler/res/prog8lib/c64/textio.p8 | 2 +- compiler/res/prog8lib/cx16/textio.p8 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/res/prog8lib/c64/textio.p8 b/compiler/res/prog8lib/c64/textio.p8 index a2d3f901b..e9f2aafff 100644 --- a/compiler/res/prog8lib/c64/textio.p8 +++ b/compiler/res/prog8lib/c64/textio.p8 @@ -16,7 +16,7 @@ const ubyte DEFAULT_HEIGHT = 25 sub clear_screen() { - clear_screenchars(' ') + txt.chrout(147) } asmsub fill_screen (ubyte char @ A, ubyte color @ Y) clobbers(A) { diff --git a/compiler/res/prog8lib/cx16/textio.p8 b/compiler/res/prog8lib/cx16/textio.p8 index f0a45e851..84eb2a799 100644 --- a/compiler/res/prog8lib/cx16/textio.p8 +++ b/compiler/res/prog8lib/cx16/textio.p8 @@ -16,7 +16,7 @@ const ubyte DEFAULT_HEIGHT = 60 sub clear_screen() { - clear_screenchars(' ') + txt.chrout(147) } asmsub fill_screen (ubyte char @ A, ubyte color @ Y) clobbers(A) {