fix: compilation warning for maybe unused variables

feature: shell - autocomplete and help menu improved
This commit is contained in:
2024-09-19 00:05:21 +02:00
parent 9b3a6cb5a4
commit 8fd17276b2
10 changed files with 84 additions and 109 deletions

View File

@ -2,7 +2,7 @@
#include <stdint.h>
static const char *keymap[128] = {
[[__maybe_unused__]] static const char *keymap[128] = {
[2] = "1!", [3] = "2@", [4] = "3#", [5] = "4$", [6] = "5%",
[7] = "6^", [8] = "7&", [9] = "8*", [10] = "9(", [11] = "0)",
[12] = "-_", [13] = "=+", [16] = "qQ", [17] = "wW", [18] = "eE",

View File

@ -2,7 +2,7 @@
#define PROMPT "> "
static const char *POOP =
[[__maybe_unused__]] static const char *POOP =
" / ____/ / _ \\\n"
" _/ ___/_ / / \\___ \\_\n"
" / _/'-, `---._ / / \\_ \\\n"
@ -43,22 +43,9 @@ static const char *POOP =
" \\_ \\___\"\"\"/\"\" / `\"\"/\"\" "
"\n";
typedef enum {
HELP,
REBOOT,
POWEROFF,
HALT,
STACK,
CLEAR,
ECHO,
COLOR,
MERDELLA,
DATE,
ERROR
} CMD_TOK;
void shell_init(void);
void reboot(void);
void halt(void);
void print_stack(void);
void date(void);
void merdella(void);

View File

@ -50,4 +50,3 @@ void terminal_clear(void);
struct key_event terminal_getkey(void);
void update_cursor(void);
void move_cursor(int direction);
struct screen *get_screen(void);