From 25e82cefdd603ea2bea493a15cc0a0bdc5fa079a Mon Sep 17 00:00:00 2001 From: churl Date: Mon, 9 May 2022 16:20:56 +0200 Subject: [PATCH] move initial page display to scroll_mode --- c_os/main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/c_os/main.cc b/c_os/main.cc index eeb6725..dbd103d 100755 --- a/c_os/main.cc +++ b/c_os/main.cc @@ -16,6 +16,8 @@ // Waits for keys to control the scrollback buffer display void scroll_mode() { + kout.show(kout.COLUMNS - 1, 0, (char)(48 + kout.current_page)); + Key key; while (true) { key = kb.key_hit(); @@ -47,8 +49,6 @@ int main() { // keyboard_demo(); heap_demo(); - kout.show(kout.COLUMNS - 1, 0, (char)(48 + kout.current_page)); - scroll_mode(); while (1) {};