Add proper docs

This commit is contained in:
Stone_Red
2026-03-04 23:33:08 +01:00
parent 163bf677ae
commit 882c4f3a51
7 changed files with 1198 additions and 8 deletions
+11 -1
View File
@@ -48,6 +48,14 @@ internal class InputHandler(TextEditor textEditor)
textEditor.CursorPosition.X = textEditor.Lines.Count > textEditor.CursorPosition.Y ? textEditor.Lines[textEditor.CursorPosition.Y].TrimEnd().Length : 0;
return true;
case ConsoleKey.R:
ExecuteWithDebugScreen("run", false, false);
return true;
case ConsoleKey.D:
ExecuteWithDebugScreen("debug", true, false);
return true;
case ConsoleKey.F:
textEditor.FormatLines();
textEditor.Display(true);
@@ -352,6 +360,8 @@ internal class InputHandler(TextEditor textEditor)
return;
}
Mode previousMode = textEditor.EditMode;
textEditor.EditMode = Mode.Debug;
textEditor.IsStepDebugMode = stepMode;
Console.Clear();
@@ -373,6 +383,6 @@ internal class InputHandler(TextEditor textEditor)
_ = Console.ReadKey();
WriteStatus(string.Empty);
textEditor.IsStepDebugMode = false;
textEditor.EditMode = Mode.Command;
textEditor.EditMode = previousMode;
}
}