[Teton] Buffer current command for executing.
This commit is contained in:
parent
c8e5441c7f
commit
faa54bc3dc
6 changed files with 42 additions and 20 deletions
17
sys/teton/terminal.h
Normal file
17
sys/teton/terminal.h
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
#include <glacier/string/string_builder.h>
|
||||
#include <mammoth/input/keyboard.h>
|
||||
|
||||
#include "framebuffer/console.h"
|
||||
|
||||
class Terminal : public mmth::KeyboardListenerBase {
|
||||
public:
|
||||
Terminal(Console& c) : mmth::KeyboardListenerBase(), console_(c) {}
|
||||
|
||||
virtual void HandleCharacter(char c) override;
|
||||
|
||||
void ExecuteCommand(const glcr::String& command);
|
||||
|
||||
private:
|
||||
Console& console_;
|
||||
glcr::VariableStringBuilder current_command_;
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue