aboutsummaryrefslogtreecommitdiff
path: root/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
diff options
context:
space:
mode:
authorlempamo <[email protected]>2017-07-03 17:40:59 -0400
committerlempamo <[email protected]>2017-07-03 17:40:59 -0400
commit34ecd67921e7205bf9f7e271458bde6d325d2753 (patch)
treeb5f5d6a359f142c075f4dd10c289006d319dc824 /TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
parent1f95add1534c986ec793d20ad3bf4a9a1deae600 (diff)
downloadhistacom2-34ecd67921e7205bf9f7e271458bde6d325d2753.tar.gz
histacom2-34ecd67921e7205bf9f7e271458bde6d325d2753.tar.bz2
histacom2-34ecd67921e7205bf9f7e271458bde6d325d2753.zip
fixed up hack1
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs')
-rw-r--r--TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs15
1 files changed, 12 insertions, 3 deletions
diff --git a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
index 731bec1..70cd0f9 100644
--- a/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
+++ b/TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs
@@ -26,7 +26,7 @@ namespace TimeHACK.OS.Win95.Win95Apps
public static string startupDir = $"{Engine.SaveSystem.ProfileMyComputerDirectory}";
public string output = "";
- public WinClassicTerminal()
+ public WinClassicTerminal(bool readOnly)
{
InitializeComponent();
@@ -43,10 +43,19 @@ namespace TimeHACK.OS.Win95.Win95Apps
sizeSel.SelectedIndex = 0;
// Set the font and append the prefix text
- cmdPrompt.Font = new Font(TitleScreen.pfc.Families[1], 10F, System.Drawing.FontStyle.Regular);
- cmdPrompt.AppendText(prefix);
+ cmdPrompt.Font = new Font(TitleScreen.pfc.Families[1], 10F, FontStyle.Regular);
cmdPrompt.BringToFront();
+
+ if (readOnly)
+ {
+ actionPanel.Hide();
+ cmdPrompt.ReadOnly = true;
+ }
+ else
+ {
+ cmdPrompt.AppendText(prefix);
+ }
}
/// <summary>
/// Write text to the Terminal and create a new line. Very similar to the Win32 Console.WriteLine Function.