move initial page display to scroll_mode
This commit is contained in:
@ -16,6 +16,8 @@
|
|||||||
|
|
||||||
// Waits for keys to control the scrollback buffer display
|
// Waits for keys to control the scrollback buffer display
|
||||||
void scroll_mode() {
|
void scroll_mode() {
|
||||||
|
kout.show(kout.COLUMNS - 1, 0, (char)(48 + kout.current_page));
|
||||||
|
|
||||||
Key key;
|
Key key;
|
||||||
while (true) {
|
while (true) {
|
||||||
key = kb.key_hit();
|
key = kb.key_hit();
|
||||||
@ -47,8 +49,6 @@ int main() {
|
|||||||
// keyboard_demo();
|
// keyboard_demo();
|
||||||
heap_demo();
|
heap_demo();
|
||||||
|
|
||||||
kout.show(kout.COLUMNS - 1, 0, (char)(48 + kout.current_page));
|
|
||||||
|
|
||||||
scroll_mode();
|
scroll_mode();
|
||||||
|
|
||||||
while (1) {};
|
while (1) {};
|
||||||
|
|||||||
Reference in New Issue
Block a user