private void ClearOutput(bool isSendClear = true, bool isClearAfterEnter = true) { if (isClearAfterEnter) { if (isSendClear) WriteInput("cls", Color.Black, false);//Clear the real console screen richTextBoxConsole.SelectedText = ""; richTextBoxConsole.Clear(); inputStart = 0; } }