示例#1
0
        internal void OnEnter()
        {
            ClearLine();
            System.Console.ForegroundColor = ConsoleColor.Green;
            System.Console.WriteLine("> " + inputString);

            var strtext = inputString;

            inputString = "";

            if (OnInputText != null)
            {
                OnInputText(strtext);
            }
            string[] args = strtext.Split(' ');

            CommandEvent.OnCommand(args, args[0]);
        }