diff options
| author | Abdellah El Morabit <nsrddyn@gmail.com> | 2025-02-19 11:33:47 +0100 |
|---|---|---|
| committer | Abdellah El Morabit <nsrddyn@gmail.com> | 2025-02-19 11:33:47 +0100 |
| commit | e7cf82f0a98d238cf3b6b6fd9a817714fb2cb81a (patch) | |
| tree | c200e15724e347371277f113f318ce4edda51e37 /main.c | |
| parent | dfa0daea30fce10aaa4c6413eb5d13d9f906ed81 (diff) | |
working on the body of the new features of the shell
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 27 |
1 files changed, 26 insertions, 1 deletions
@@ -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 |
