mirror of
https://github.com/cfenollosa/os-tutorial.git
synced 2025-12-17 12:24:37 +03:00
lesson 16, kprint
This commit is contained in:
10
16-video-driver/kernel/kernel.c
Normal file
10
16-video-driver/kernel/kernel.c
Normal file
@@ -0,0 +1,10 @@
|
||||
#include "../drivers/screen.h"
|
||||
|
||||
void main() {
|
||||
clear_screen();
|
||||
kprint_at("X", 1, 6);
|
||||
kprint_at("This text spans multiple lines", 75, 10);
|
||||
kprint_at("There is a line\nbreak", 0, 20);
|
||||
kprint("There is a line\nbreak");
|
||||
kprint_at("What happens when we run out of space?", 45, 24);
|
||||
}
|
||||
Reference in New Issue
Block a user