aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Controls
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-28 14:40:42 -0400
committerMichael <[email protected]>2017-05-28 14:40:42 -0400
commit9914c18456a0c08019e778479ce727ac937b1e57 (patch)
tree30501777916b27e763aac3b901b0e4d7e22170cc /ShiftOS.WinForms/Controls
parent6123e06842ec9eea60bd2d73588ac6c545d0ea99 (diff)
downloadshiftos_thereturn-9914c18456a0c08019e778479ce727ac937b1e57.tar.gz
shiftos_thereturn-9914c18456a0c08019e778479ce727ac937b1e57.tar.bz2
shiftos_thereturn-9914c18456a0c08019e778479ce727ac937b1e57.zip
Fuck
Diffstat (limited to 'ShiftOS.WinForms/Controls')
-rw-r--r--ShiftOS.WinForms/Controls/TerminalBox.cs6
1 files changed, 6 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Controls/TerminalBox.cs b/ShiftOS.WinForms/Controls/TerminalBox.cs
index 25f7144..c188321 100644
--- a/ShiftOS.WinForms/Controls/TerminalBox.cs
+++ b/ShiftOS.WinForms/Controls/TerminalBox.cs
@@ -64,6 +64,9 @@ namespace ShiftOS.WinForms.Controls
public void Write(string text)
{
this.HideSelection = true;
+ this.SelectionColor = ControlManager.ConvertColor(ConsoleEx.ForegroundColor);
+ this.SelectionBackColor = ControlManager.ConvertColor(ConsoleEx.BackgroundColor);
+ this.SelectionFont = ConstructFont();
this.AppendText(Localization.Parse(text));
this.HideSelection = false;
}
@@ -85,6 +88,9 @@ namespace ShiftOS.WinForms.Controls
{
Engine.AudioManager.PlayStream(Properties.Resources.writesound);
this.HideSelection = true;
+ this.SelectionColor = ControlManager.ConvertColor(ConsoleEx.ForegroundColor);
+ this.SelectionBackColor = ControlManager.ConvertColor(ConsoleEx.BackgroundColor);
+ this.SelectionFont = ConstructFont();
this.Select(this.TextLength, 0);
this.AppendText(Localization.Parse(text) + Environment.NewLine);
this.HideSelection = false;