Kernel: Add basic Shell to test functionality

This commit is contained in:
Bananymous
2022-12-13 21:34:50 +02:00
parent f8224e55b1
commit 711ba19a82
3 changed files with 181 additions and 68 deletions

View File

@@ -0,0 +1,28 @@
#pragma once
#include <BAN/String.h>
#include <kernel/Keyboard.h>
namespace Kernel
{
class Shell
{
public:
Shell(const Shell&) = delete;
static Shell& Get();
void Run();
private:
Shell();
void PrintPrompt();
void ProcessCommand(BAN::StringView);
void KeyEventCallback(Keyboard::KeyEvent);
private:
BAN::String m_buffer;
};
}