aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs
diff options
context:
space:
mode:
authorMarvin Borner2020-04-28 20:59:57 +0200
committerMarvin Borner2020-04-28 20:59:57 +0200
commit5f8b5ce7efb7738eaebad43f9648975788ae19ff (patch)
treeab8fc4d4baa4adb99dc90461df689650acf34cef /src/userspace/programs
parentbfe16de4be67565f1a1e7b1331fcbe3aedf9c54e (diff)
Fixed userspace entering...
Many other fixes too, but I won't mention them because I don't want to :)
Diffstat (limited to 'src/userspace/programs')
-rw-r--r--src/userspace/programs/sh.c10
1 files changed, 7 insertions, 3 deletions
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