From 5f8b5ce7efb7738eaebad43f9648975788ae19ff Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Tue, 28 Apr 2020 20:59:57 +0200 Subject: Fixed userspace entering... Many other fixes too, but I won't mention them because I don't want to :) --- src/userspace/programs/sh.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/userspace/programs/sh.c') diff --git a/src/userspace/programs/sh.c b/src/userspace/programs/sh.c index 3cb2bf9..6dcb206 100644 --- a/src/userspace/programs/sh.c +++ b/src/userspace/programs/sh.c @@ -2,9 +2,13 @@ void main() { - syscall_write("\nHello from Userspace!\n"); + syscall_putch('\n'); + syscall_putch('>'); + syscall_putch(' '); - syscall_write("> "); + while (1) { + syscall_putch(syscall_getch()); + } syscall_halt(); -} +} \ No newline at end of file -- cgit v1.2.3