diff --git a/.vs/ShiftOS/v15/sqlite3/storage.ide b/.vs/ShiftOS/v15/sqlite3/storage.ide
index 4ff5119..1ddce4d 100644
Binary files a/.vs/ShiftOS/v15/sqlite3/storage.ide and b/.vs/ShiftOS/v15/sqlite3/storage.ide differ
diff --git a/ShiftOS.Engine/ShiftOS.Engine.csproj b/ShiftOS.Engine/ShiftOS.Engine.csproj
index 6b810fa..88ad0cf 100644
--- a/ShiftOS.Engine/ShiftOS.Engine.csproj
+++ b/ShiftOS.Engine/ShiftOS.Engine.csproj
@@ -63,7 +63,6 @@
True
Resources.resx
-
diff --git a/ShiftOS.Main/ShiftOS.Main.csproj b/ShiftOS.Main/ShiftOS.Main.csproj
index f7d8dc0..35d7761 100644
--- a/ShiftOS.Main/ShiftOS.Main.csproj
+++ b/ShiftOS.Main/ShiftOS.Main.csproj
@@ -102,9 +102,6 @@
-
- HijackScreen.cs
-
ResXFileCodeGenerator
Resources.Designer.cs
diff --git a/ShiftOS.Main/ShiftOS/Apps/Terminal.cs b/ShiftOS.Main/ShiftOS/Apps/Terminal.cs
index a5c5a11..5976cab 100644
--- a/ShiftOS.Main/ShiftOS/Apps/Terminal.cs
+++ b/ShiftOS.Main/ShiftOS/Apps/Terminal.cs
@@ -14,52 +14,48 @@ namespace ShiftOS.Main.ShiftOS.Apps
public bool RunningCommand = false;
public bool WaitingResponse = false;
public string InputReturnText = "";
-using ShiftOS.Engine.Terminal;
-
-namespace ShiftOS.Main.ShiftOS.Apps
-{
- public partial class Terminal : UserControl
- {
- public string DefaulttextBefore = "user> ";
- string DefaulttextResult = "user@shiftos> "; // NOT YET IMPLEMENTED!!!
- bool DoClear = false;
// The below variables makes the terminal... a terminal!
string OldText = "";
int TrackingPosition;
- termmain.ContextMenuStrip = new ContextMenuStrip(); // Disables the right click of a richtextbox!
-
- TerminalBackend.trm.Add(this); // Makes the commands run!
- }
public Terminal()
{
InitializeComponent();
termmain.ContextMenuStrip = new ContextMenuStrip(); // Disables the right click of a richtextbox!
- }
- void Print(string text)
- {
- termmain.AppendText($"\n {text} \n {DefaulttextResult}");
- TrackingPosition = termmain.Text.Length;
- }
- if (e.Control && e.KeyCode == Keys.V)
- {
- //if (Clipboard.ContainsText())
- // termmain.Paste(DataFormats.GetFormat(DataFormats.Text));
- e.Handled = true;
- } else if (e.KeyCode == Keys.Enter) {
- RunningCommand = true;
- TerminalBackend.RunCommand(termmain.Text.Substring(TrackingPosition, termmain.Text.Length - TrackingPosition), TerminalID); // The most horrific line in the entire application!
- RunningCommand = false;
- termmain.AppendText($"\n {defaulttextResult}");
- TrackingPosition = termmain.Text.Length;
- e.Handled = true;
- }
+ TerminalBackend.trm.Add(this);
}
+ void Print()
+ {
+ termmain.AppendText($"\n {defaulttextResult}");
+ TrackingPosition = termmain.Text.Length;
+ }
+
+ void Print(string text)
+ {
+ termmain.AppendText($"\n {text} \n {defaulttextResult}");
+ TrackingPosition = termmain.Text.Length;
+ }
+
+ //if (e.Control && e.KeyCode == Keys.V)
+ // {
+ // //if (Clipboard.ContainsText())
+ // // termmain.Paste(DataFormats.GetFormat(DataFormats.Text));
+ // e.Handled = true;
+ // } else if (e.KeyCode == Keys.Enter) {
+ // RunningCommand = true;
+ // TerminalBackend.RunCommand(termmain.Text.Substring(TrackingPosition, termmain.Text.Length - TrackingPosition), TerminalID); // The most horrific line in the entire application!
+ // RunningCommand = false;
+ // termmain.AppendText($"\n {defaulttextResult}");
+ // TrackingPosition = termmain.Text.Length;
+ // e.Handled = true;
+ // }
+ //}
+
private void termmain_TextChanged(object sender, EventArgs e)
{
if (!RunningCommand)
@@ -113,8 +109,7 @@ namespace ShiftOS.Main.ShiftOS.Apps
TrackingPosition = termmain.Text.Length;
DoClear = false;
}
- }
-}
+
void termmain_KeyDown(object sender, KeyEventArgs e)
{
// The below code disables the ability to paste anything other then text...
@@ -127,41 +122,10 @@ namespace ShiftOS.Main.ShiftOS.Apps
}
else if (e.KeyCode == Keys.Enter)
{
- Print(
- TerminalBackend.RunCommand(
- termmain.Text.Substring(
- TrackingPosition,
- termmain.Text.Length - TrackingPosition))); // The most horrific line in the entire application!
+ TerminalBackend.RunCommand(termmain.Text.Substring(TrackingPosition, termmain.Text.Length - TrackingPosition), TerminalID); // The most horrific line in the entire application!
+ Print();
e.Handled = true;
}
}
-
- void termmain_TextChanged(object sender, EventArgs e)
- {
- if (termmain.SelectionStart < TrackingPosition)
- {
- if (DoClear) return;
-
- termmain.Text = OldText;
- termmain.Select(termmain.Text.Length, 0);
- }
- else
- {
- OldText = termmain.Text;
- }
- }
-
- void termmain_SelectionChanged(object sender, EventArgs e)
- {
- if (termmain.SelectionStart >= TrackingPosition) return;
-
- termmain.Text = OldText;
- termmain.Select(termmain.Text.Length, 0);
- }
-
- void Terminal_Load(object sender, EventArgs e)
- {
- Print("\n");
- }
}
}
diff --git a/ShiftOS.Main/ShiftOS/Desktop.cs b/ShiftOS.Main/ShiftOS/Desktop.cs
index 10eea41..4bf4805 100644
--- a/ShiftOS.Main/ShiftOS/Desktop.cs
+++ b/ShiftOS.Main/ShiftOS/Desktop.cs
@@ -60,13 +60,6 @@ namespace ShiftOS.Main.ShiftOS
ShiftWM.Init(trm, "Terminal", null, false, true);
}
- }
-}
- void terminalToolStripMenuItem_Click(object sender, EventArgs e)
- {
- var trm = new Terminal();
- ShiftWM.Init(trm, "Terminal", null);
- }
void textPadToolStripMenuItem_Click(object sender, EventArgs e)
{