2024-09-10 14:03:33 -04:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define PROMPT "> "
|
|
|
|
|
|
|
|
static const char *POOP =
|
|
|
|
" / ____/ / _ \\\n"
|
|
|
|
" _/ ___/_ / / \\___ \\_\n"
|
|
|
|
" / _/'-, `---._ / / \\_ \\\n"
|
|
|
|
" / ______/(0} `, , ` , ) / / \\_ \\\n"
|
|
|
|
" / V ; ` , ` ( / / ,'~~~~~~`, \\\n"
|
|
|
|
" | `.____,- ' (, ` , ) / / :`,-'\"\"`. \"; "
|
|
|
|
"|\n"
|
|
|
|
" | `-------._); , ` `, / / \\;: )``: |\n"
|
|
|
|
" / / ) ) ; ` ,, : / / `` : '; "
|
|
|
|
"\\\n"
|
|
|
|
"/ / ( (`;: ; ` ;:\\ / / ;;;, "
|
|
|
|
"\\\n"
|
|
|
|
"| / (: )``;:;;)`'`'`--./ / ____ _,-';;` "
|
|
|
|
"|\n"
|
|
|
|
"| | :` )`;)`)`' : / / ~~~~~ ~~~`--',.;;;| "
|
|
|
|
"|\n"
|
|
|
|
"| | `--;~~~~~ ` / /, \" \" \"` \",, \\ ;`` | "
|
|
|
|
" |\n"
|
|
|
|
"| | ( ; , / / ; `; ; | "
|
|
|
|
"|\n"
|
|
|
|
"| | (; ; ; ` / / ,` ` : | "
|
|
|
|
"><\n"
|
|
|
|
"| | (; / / / ` ; ; : |\n"
|
|
|
|
"| \\ ;(_; ; : / /` ; ; ,,,\"\"\";} `; / "
|
|
|
|
"><\n"
|
|
|
|
"\\ \\ : `; `; ` / /,;,'''' );;`); ; / >< "
|
|
|
|
" ><\n"
|
|
|
|
" \\ | ;' :; ;/ / (;` :( ; , ; | "
|
|
|
|
"><\n"
|
|
|
|
" | | |, `;; ,/ / `)`; `(; ` `; | "
|
|
|
|
"(`\\\n"
|
|
|
|
" | \\ ; ;; ``: / `).:` \\;, `. / _> "
|
|
|
|
")_\n"
|
|
|
|
" \\ \\_ ,-' ;`;;:;` / ;;'`;; `) )/ ,-' "
|
|
|
|
",-. `;\n"
|
|
|
|
" \\ \\_ ~~~,-`;`;,\" / ~~~~~ ,-' ; "
|
|
|
|
"`\"\"/ /\"\"\n"
|
|
|
|
" \\_ \\___\"\"\"/\"\" / `\"\"/\"\" "
|
|
|
|
"\n";
|
|
|
|
|
2024-09-11 11:43:18 -04:00
|
|
|
typedef enum {
|
|
|
|
HELP,
|
|
|
|
REBOOT,
|
|
|
|
POWEROFF,
|
|
|
|
HALT,
|
2024-09-17 05:10:41 -04:00
|
|
|
STACK,
|
2024-09-17 07:57:52 -04:00
|
|
|
CLEAR,
|
2024-09-11 11:43:18 -04:00
|
|
|
ECHO,
|
|
|
|
COLOR,
|
|
|
|
MERDELLA,
|
2024-09-18 16:30:11 -04:00
|
|
|
DATE,
|
2024-09-11 11:43:18 -04:00
|
|
|
ERROR
|
|
|
|
} CMD_TOK;
|
2024-09-10 14:03:33 -04:00
|
|
|
|
2024-09-17 07:57:52 -04:00
|
|
|
void shell_init(void);
|
2024-09-10 14:03:33 -04:00
|
|
|
void reboot(void);
|
2024-09-11 11:43:18 -04:00
|
|
|
void halt(void);
|
2024-09-17 05:10:41 -04:00
|
|
|
void print_stack(void);
|
2024-09-18 15:45:18 -04:00
|
|
|
void date(void);
|