diff --git a/src/Pish.c b/src/Pish.c index cac9605..9241d98 100644 --- a/src/Pish.c +++ b/src/Pish.c @@ -2,13 +2,20 @@ #include #include #include +#include #include "Integrated.h" #include "Pish.h" // Prints a prompt and then reads a command from the terminal char* getInput(void) { - return "echo hello world"; + char prompt = '$'; + char *commandLine; + + printf("%c ", prompt); + scanf("%[^\n]", commandLine); + + return commandLine; } // Executes a command to the system