aboutsummaryrefslogtreecommitdiff
path: root/ShiftOS.WinForms/Controls/TerminalBox.cs
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-12 21:22:08 -0400
committerMichael <[email protected]>2017-05-12 21:22:08 -0400
commit94e1603b8574b45b809d3c66b6b90e7734a99d1e (patch)
tree85f8dc859a969132abbb6322f245f5e00a02fa03 /ShiftOS.WinForms/Controls/TerminalBox.cs
parentc18c0fbc325b1c6a0864f88c6e2f4d2889d62e18 (diff)
downloadshiftos_thereturn-94e1603b8574b45b809d3c66b6b90e7734a99d1e.tar.gz
shiftos_thereturn-94e1603b8574b45b809d3c66b6b90e7734a99d1e.tar.bz2
shiftos_thereturn-94e1603b8574b45b809d3c66b6b90e7734a99d1e.zip
Post-intro tutorial
Diffstat (limited to 'ShiftOS.WinForms/Controls/TerminalBox.cs')
-rw-r--r--ShiftOS.WinForms/Controls/TerminalBox.cs4
1 files changed, 4 insertions, 0 deletions
diff --git a/ShiftOS.WinForms/Controls/TerminalBox.cs b/ShiftOS.WinForms/Controls/TerminalBox.cs
index ea7808c..e95d038 100644
--- a/ShiftOS.WinForms/Controls/TerminalBox.cs
+++ b/ShiftOS.WinForms/Controls/TerminalBox.cs
@@ -63,12 +63,14 @@ namespace ShiftOS.WinForms.Controls
public void Write(string text)
{
+ this.SuspendLayout();
this.HideSelection = true;
this.SelectionFont = ConstructFont();
this.SelectionColor = ControlManager.ConvertColor(ConsoleEx.ForegroundColor);
this.SelectionBackColor = ControlManager.ConvertColor(ConsoleEx.BackgroundColor);
this.AppendText(Localization.Parse(text));
this.HideSelection = false;
+ this.ResumeLayout();
}
private Font ConstructFont()
@@ -86,6 +88,7 @@ namespace ShiftOS.WinForms.Controls
public void WriteLine(string text)
{
+ this.SuspendLayout();
Engine.AudioManager.PlayStream(Properties.Resources.writesound);
this.HideSelection = true;
this.Select(this.TextLength, 0);
@@ -94,6 +97,7 @@ namespace ShiftOS.WinForms.Controls
this.SelectionBackColor = ControlManager.ConvertColor(ConsoleEx.BackgroundColor);
this.AppendText(Localization.Parse(text) + Environment.NewLine);
this.HideSelection = false;
+ this.ResumeLayout();
}
bool quickCopying = false;