aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Applications
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-28 06:44:58 -0400
committerMichael <[email protected]>2017-05-28 06:44:58 -0400
commitdc0b8c66885593f7412e24bf7132bc08f6c40a9c (patch)
tree4e72d08904a24aa9e7fe9e6daeaf958a3f2976f2 /ShiftOS.WinForms/Applications
parente841b168e13e0bd699c0e0d19857167aa725f1ca (diff)
downloadshiftos_thereturn-dc0b8c66885593f7412e24bf7132bc08f6c40a9c.tar.gz
shiftos_thereturn-dc0b8c66885593f7412e24bf7132bc08f6c40a9c.tar.bz2
shiftos_thereturn-dc0b8c66885593f7412e24bf7132bc08f6c40a9c.zip
Fix a bug with command-line login.
Diffstat (limited to 'ShiftOS.WinForms/Applications')
-rw-r--r--ShiftOS.WinForms/Applications/Terminal.cs7
1 files changed, 7 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Applications/Terminal.cs b/ShiftOS.WinForms/Applications/Terminal.cs
index ea24686..4cd4806 100644
--- a/ShiftOS.WinForms/Applications/Terminal.cs
+++ b/ShiftOS.WinForms/Applications/Terminal.cs
@@ -269,6 +269,13 @@ namespace ShiftOS.WinForms.Applications
try
{
a.SuppressKeyPress = true;
+ if (!TerminalBackend.PrefixEnabled)
+ {
+ string textraw = txt.Lines[txt.Lines.Length - 1];
+ TextSent?.Invoke(textraw);
+ TerminalBackend.SendText(textraw);
+ return;
+ }
Console.WriteLine("");
var text = txt.Lines.ToArray();
var text2 = text[text.Length - 2];