public void OpenInput(string cmd) { Visible = true; ContinuationStatement = statement = null; ShowEditor(); if (cmd != null) { ResetBuffer(cmd + " "); commandEditor.Buffer.Selections.Set(new Pos(0, cmd.Length + 1)); commandEditor.Styles.RestyleDocument(); } commandEditor.Focus(); }