refactor: clean up the virtual memory mappings
[lunaix-os.git] / lunaix-os / kernel / demos / simple_sh.c
index 4ea9711a925438232e4fbc14386f13ee3b6c6554..195117af3c211029439b2f6749858130edb5ca6e 100644 (file)
@@ -75,7 +75,7 @@ sh_main()
 
     while (1) {
         getcwd(pwd, 512);
 
     while (1) {
         getcwd(pwd, 512);
-        printf("%s$ ", pwd);
+        printf("[\033[2m%s\033[39;49m]$ ", pwd);
         size_t sz = read(stdin, buf, 512);
         if (sz < 0) {
             printf("fail to read user input (%d)\n", geterrno());
         size_t sz = read(stdin, buf, 512);
         if (sz < 0) {
             printf("fail to read user input (%d)\n", geterrno());
@@ -121,6 +121,7 @@ sh_main()
                     write(stdout, cat_buf, sz);
                 }
                 close(fd);
                     write(stdout, cat_buf, sz);
                 }
                 close(fd);
+                printf("\n");
             }
         } else {
             printf("unknow command");
             }
         } else {
             printf("unknow command");