From e7cf82f0a98d238cf3b6b6fd9a817714fb2cb81a Mon Sep 17 00:00:00 2001 From: Abdellah El Morabit Date: Wed, 19 Feb 2025 11:33:47 +0100 Subject: working on the body of the new features of the shell --- main.c | 27 ++++++++++++++++++++++++++- 1 file changed, 26 insertions(+), 1 deletion(-) (limited to 'main.c') diff --git a/main.c b/main.c index 88be4cc..1eba34b 100644 --- a/main.c +++ b/main.c @@ -146,7 +146,32 @@ void ls(const char *path) { closedir(dP); } -void clear() { +void make_dir(const char *path) { + printf("made a new directory"); +} + +void remove_dir(const char *path) { + printf("removed a directory"); +} + +void remove_file(const char *path) { + printf("remove_file"); +} + +void copy_files(const char *arg) { + printf("copy file"); +} + +void move_files(const char *arg) { + printf("move file"); +} + +void clear(const char *arg) { + if (arg != NULL) { + printf("clear doesn't support any arguments, see help() for help"); + return; + } + // 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 -- cgit v1.2.3-70-g09d2