summaryrefslogtreecommitdiff
path: root/src/init/main.c
diff options
context:
space:
mode:
authordzwdz2022-03-27 13:22:29 +0200
committerdzwdz2022-03-27 13:22:29 +0200
commit7f636b2e933e198512bee412769328d2d57e7f4e (patch)
tree9ea49e05b8de00221b1b8465d9232867671f6be9 /src/init/main.c
parent38d1712e31e60de9f2afe85873b2174e002e3e99 (diff)
kernel/vfs: `/vga` node
Diffstat (limited to 'src/init/main.c')
-rw-r--r--src/init/main.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/init/main.c b/src/init/main.c
index 2fe17eb..ba5fdcd 100644
--- a/src/init/main.c
+++ b/src/init/main.c
@@ -26,6 +26,12 @@ int main(void) {
if (__tty_fd < 0)
_syscall_exit(1);
+ // change screen color
+ handle_t vga = _syscall_open(argify("/vga"));
+ for (int i = 1; i < 80*25*2; i += 2)
+ _syscall_write(vga, "\x4f", 1, i);
+ _syscall_close(vga);
+
fs_prep();
shell_loop();