示例#1
0
 public ClearFunction(CommandPrompt cp)
 {
     Name          = "Clear";
     CommandPrompt = cp;
     MinParameters = 0;
     MaxParameters = 0;
 }
示例#2
0
        public override object Eval(object[] parameters, ParseTreeEvaluator tree)
        {
            CommandPrompt console = tree.Context.Console;

            if (console != null)
            {
                console.Text = "";
            }
            return(null);
        }