diff options
| author | hathach <[email protected]> | 2013-09-26 15:04:02 +0700 |
|---|---|---|
| committer | hathach <[email protected]> | 2013-09-26 15:04:02 +0700 |
| commit | 0268e0b7876012a3a418fd41afbbb0bcc3c41be6 (patch) | |
| tree | 6fa12a1f1b8d1e8e826e2a2e17096b9e102d3b1e /demos/host/src/cli.c | |
| parent | 9d60db0f9f8346965c3f1b49d3ef2f63257cd3ef (diff) | |
added clear screen command
Diffstat (limited to 'demos/host/src/cli.c')
| -rw-r--r-- | demos/host/src/cli.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/demos/host/src/cli.c b/demos/host/src/cli.c index 737369768..8e5900abb 100644 --- a/demos/host/src/cli.c +++ b/demos/host/src/cli.c @@ -81,7 +81,7 @@ static char const * const cli_error_message[] = ENTRY(cls , cli_cmd_clear , "Clear the screen." ) \ ENTRY(ls , cli_cmd_list , "List information about the FILEs (the current directory by default).") \ ENTRY(cd , cli_cmd_changedir, "change the current directory." ) \ - ENTRY(cat , cli_cmd_cat , "display contents of a text file." ) \ + ENTRY(cat , cli_cmd_cat , "display contents of a file." ) \ ENTRY(cp , cli_cmd_copy , "Copies one or more files to another location." ) \ ENTRY(mkdir , cli_cmd_mkdir , "Create a DIRECTORY, if it does not already exist." ) \ @@ -241,7 +241,8 @@ cli_error_t cli_cmd_help(char * para) //--------------------------------------------------------------------+ cli_error_t cli_cmd_clear(char* p_para) { - printf(ANSI_ERASE_SCREEN(2)); + printf(ANSI_ERASE_SCREEN(2) ANSI_CURSOR_POSITION(1,1) ); + return CLI_ERROR_NONE; } //--------------------------------------------------------------------+ @@ -345,6 +346,13 @@ cli_error_t cli_cmd_cat(char *p_para) //--------------------------------------------------------------------+ // Make Directory command //--------------------------------------------------------------------+ +cli_error_t cli_cmd_mkdir(char *p_para) +{ + puts("executing mkdir"); + + return CLI_ERROR_NONE; +} + //--------------------------------------------------------------------+ // COPY command //--------------------------------------------------------------------+ |
