diff options
| author | Michael <[email protected]> | 2017-05-28 06:44:58 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-28 06:44:58 -0400 |
| commit | dc0b8c66885593f7412e24bf7132bc08f6c40a9c (patch) | |
| tree | 4e72d08904a24aa9e7fe9e6daeaf958a3f2976f2 /ShiftOS.WinForms/Applications | |
| parent | e841b168e13e0bd699c0e0d19857167aa725f1ca (diff) | |
| download | shiftos_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.cs | 7 |
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]; |
