Added an interactive shell, well the start of one.

This commit is contained in:
2022-02-07 19:53:29 +00:00
parent 8dbd655c43
commit 68882d05a3
+10 -1
View File
@@ -49,5 +49,14 @@ char* GetFileContents(const char* path) {
}
void RunPrompt(void) {
printf("> \n");
printf("> ");
char input[256];
while(fgets(input, sizeof input, stdin) != NULL) {
if (strcmp(input, "q\n") == 0) break;
printf("E_NOT_IMPLEMENTED\n");
printf("> ");
}
}