summaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/main.c b/main.c
index 07bc1a1..17e0469 100644
--- a/main.c
+++ b/main.c
@@ -62,6 +62,20 @@ struct com_struct split_command(char *input) {
return NEW_COMMAND;
}
+void clear() {
+ // clear the visible part of the terminal -> see man pages clear command
+ printf("\033[2J");
+ // clear the input buffer of the terminal -> see man pages clear command
+ printf("\033[3J");
+}
+
+void change_directory(const char *path) {
+ if (path == NULL) {
+ printf("No path found\n");
+ return;
+ }
+}
+
int main(void) {
while (1) {
printf("\n$ ");