private void WriteOutput(string output, Color color) {
//if (string.IsNullOrEmpty(lastInput) == false && (output == lastInput || output.Replace("\r\n", "") == lastInput))
if (!string.IsNullOrEmpty(lastInput) && (output == lastInput || output.Replace("\r\n", "") == lastInput))
return;
ClearOutput(false, this._ShouldClear);
// Write the output.
richTextBoxConsole.SelectionColor = color;
richTextBoxConsole.SelectedText += output;
inputStart = richTextBoxConsole.SelectionStart;
}