diff --git a/shiftos.main/shiftos/apps/terminal.cs b/shiftos.main/shiftos/apps/terminal.cs index cf20bd9..c4bfe83 100644 --- a/shiftos.main/shiftos/apps/terminal.cs +++ b/shiftos.main/shiftos/apps/terminal.cs @@ -16,7 +16,7 @@ namespace ShiftOS.Main.ShiftOS.Apps public bool RunningCommand = false; public bool WaitingResponse = false; public string InputReturnText = ""; - public List c = TerminalBackend.commandBuffer; + public Stack c = TerminalBackend.commandBuffer; // The below variables makes the terminal... a terminal! string OldText = ""; @@ -133,7 +133,7 @@ namespace ShiftOS.Main.ShiftOS.Apps else if (e.KeyCode == Keys.Up) { if (c.Count == 0) return; - termmain.AppendText(c.Last()); + termmain.AppendText(c.Pop()); } } }