summaryrefslogtreecommitdiff
path: root/src/user/app/init/init.c
diff options
context:
space:
mode:
authordzwdz2022-08-01 20:36:41 +0200
committerdzwdz2022-08-01 20:37:07 +0200
commit89e59c1c56ca37163ea1629c1c11e9bc48727746 (patch)
tree18c851a7478baa4cb418e63b3fd8dc4ac8c5c7c9 /src/user/app/init/init.c
parent6a85c6ede66f723e1415552482e1c6640653efa2 (diff)
user: make ansiterm use the framebuffer instead of vga text mode
Diffstat (limited to 'src/user/app/init/init.c')
-rw-r--r--src/user/app/init/init.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/user/app/init/init.c b/src/user/app/init/init.c
index 519329c..4e2a668 100644
--- a/src/user/app/init/init.c
+++ b/src/user/app/init/init.c
@@ -26,11 +26,12 @@ void redirect(const char *exe, const char *out, const char *in) {
int main(void) {
freopen("/kdev/com1", "a+", stdout);
+ freopen("/kdev/com1", "a+", stderr);
printf("in init (stage 2), main at 0x%x\n", &main);
MOUNT_AT("/tmp/") { tmpfs_drv(); }
MOUNT_AT("/keyboard") { ps2_drv(); }
- MOUNT_AT("/vga_tty") { ansiterm_drv(); }
+ MOUNT_AT("/vtty") { ansiterm_drv(); }
MOUNT_AT("/bin/") { fs_passthru("/init/bin"); }
if (fork()) {
@@ -41,7 +42,7 @@ int main(void) {
}
redirect("/bin/shell", "/kdev/com1", "/kdev/com1");
- redirect("/bin/shell", "/vga_tty", "/keyboard");
+ redirect("/bin/shell", "/vtty", "/keyboard");
_syscall_await();
printf("init: quitting\n");