aboutsummaryrefslogtreecommitdiff
path: root/shiftos.main/shiftos/apps/terminal.cs
diff options
context:
space:
mode:
authorFloppyDiskDrive <[email protected]>2017-11-21 17:47:56 -0600
committerFloppyDiskDrive <[email protected]>2017-11-21 17:47:56 -0600
commit50ba8da32176b8ca319f930bde3c6529ad6825ff (patch)
treec143a4689ee25cceadd965ba17a15776ce16d5db /shiftos.main/shiftos/apps/terminal.cs
parent04ce34c09976bb3d28c6bc88db7a3bdc50bd543c (diff)
downloadshiftos-rewind-50ba8da32176b8ca319f930bde3c6529ad6825ff.tar.gz
shiftos-rewind-50ba8da32176b8ca319f930bde3c6529ad6825ff.tar.bz2
shiftos-rewind-50ba8da32176b8ca319f930bde3c6529ad6825ff.zip
yay even more different change
Diffstat (limited to 'shiftos.main/shiftos/apps/terminal.cs')
-rw-r--r--shiftos.main/shiftos/apps/terminal.cs10
1 files changed, 9 insertions, 1 deletions
diff --git a/shiftos.main/shiftos/apps/terminal.cs b/shiftos.main/shiftos/apps/terminal.cs
index 28e301c..44452ab 100644
--- a/shiftos.main/shiftos/apps/terminal.cs
+++ b/shiftos.main/shiftos/apps/terminal.cs
@@ -2,6 +2,8 @@
using System.Windows.Forms;
using ShiftOS.Engine;
using ShiftOS.Main.Terminal;
+using System.Linq;
+using System.Collections.Generic;
namespace ShiftOS.Main.ShiftOS.Apps
{
@@ -14,6 +16,7 @@ namespace ShiftOS.Main.ShiftOS.Apps
public bool RunningCommand = false;
public bool WaitingResponse = false;
public string InputReturnText = "";
+ public List<string> c = TerminalBackend.commandBuffer;
// The below variables makes the terminal... a terminal!
string OldText = "";
@@ -127,6 +130,11 @@ namespace ShiftOS.Main.ShiftOS.Apps
Print();
e.Handled = true;
}
- }
+ else if (e.KeyCode == Keys.Up)
+ {
+ if (c.Count == 0) return;
+ termmain.AppendText(c.Last());
+ }
+ }
}
}