Kernel: Add basic Shell to test functionality
This commit is contained in:
28
kernel/include/kernel/Shell.h
Normal file
28
kernel/include/kernel/Shell.h
Normal 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user