diff options
Diffstat (limited to 'TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs')
| -rw-r--r-- | TimeHACK.Main/OS/Win95/Win95Apps/WinClassicTerminal.cs | 15 |
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. |
