aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/programs/sh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/programs/sh.c')
-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