feature: functional shell with help and merdella commands
TOOD: reboot, poweroff, echo, color
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
#pragma once
|
||||
|
||||
#include <stdint.h>
|
||||
|
||||
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)",
|
||||
@ -93,6 +95,11 @@ static const char *keymap[128] = {
|
||||
#define KEY_RIGHT 0x4D
|
||||
#define KEY_SPACE 0x39
|
||||
#define KEY_UP 0x48
|
||||
#define KET_LEFT_SHIFT 0x2A
|
||||
#define KEY_LEFT_SHIFT 0x2A
|
||||
#define KEY_RIGHT_SHIFT 0x36
|
||||
#define KEY_CAPSLOCK 0x3A
|
||||
#define KEY_CAPSLOCK 0x3A
|
||||
|
||||
struct key_event {
|
||||
uint8_t c;
|
||||
uint8_t scan_code;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user