private void AppendOutput(string message, Color textColor) { TerminalOutput.SelectionStart = TerminalOutput.Text.Length; TerminalOutput.SelectionColor = textColor; TerminalOutput.AppendText(message); TerminalOutput.ScrollToCaret(); }
public void AppendCommandLineToTerminalOutputResponse(string commandLine) { TerminalOutput.SelectionStart = TerminalOutput.TextLength; TerminalOutput.SelectionLength = 0; commandLine = "# " + commandLine + "\n"; TerminalOutput.SelectionColor = Color.Blue; TerminalOutput.AppendText(commandLine); TerminalOutput.SelectionColor = TerminalOutput.ForeColor; //this.TerminalOutput.Text = this.TerminalOutput.Text + "#" + commandLine+ "\n"; }
public void AppendCommandLineToTerminalOutput(string commandLine) { // this.TerminalOutput.Text = this.TerminalOutput.Text + ">" + commandLine + "\n"; ; TerminalOutput.SelectionStart = TerminalOutput.TextLength; TerminalOutput.SelectionLength = 0; commandLine = "> " + commandLine + "\n"; TerminalOutput.SelectionColor = Color.Red; TerminalOutput.AppendText(commandLine); TerminalOutput.SelectionColor = TerminalOutput.ForeColor; //String tekst = ">" + commandLine + "\n"; //this.TerminalOutput.ForeColor = Color.Red; }