public ClearFunction(CommandPrompt cp) { Name = "Clear"; CommandPrompt = cp; MinParameters = 0; MaxParameters = 0; }
public override object Eval(object[] parameters, ParseTreeEvaluator tree) { CommandPrompt console = tree.Context.Console; if (console != null) { console.Text = ""; } return(null); }