From 7d7cb8024c7bc311dfdac39465726e586363860d Mon Sep 17 00:00:00 2001 From: Drew Galbraith Date: Sun, 26 Nov 2023 13:53:22 -0800 Subject: [PATCH] [Teton] Add a help command. --- sys/teton/terminal.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sys/teton/terminal.cpp b/sys/teton/terminal.cpp index a22ee99..72e0bfb 100644 --- a/sys/teton/terminal.cpp +++ b/sys/teton/terminal.cpp @@ -14,7 +14,9 @@ void Terminal::HandleCharacter(char c) { } void Terminal::ExecuteCommand(const glcr::String& command) { - if (command == "cwd") { + if (command == "help") { + console_.WriteString("Available Commands: cwd\n"); + } else if (command == "cwd") { console_.WriteString(cwd_); console_.WriteChar('\n'); } else {