From 34ecd67921e7205bf9f7e271458bde6d325d2753 Mon Sep 17 00:00:00 2001 From: lempamo Date: Mon, 3 Jul 2017 17:40:59 -0400 Subject: fixed up hack1 --- TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs') 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); + } } /// /// Write text to the Terminal and create a new line. Very similar to the Win32 Console.WriteLine Function. -- cgit v1.2.3