Example #1
0
        private static void BuildCommandLine()
        {
            //attach server kernal
            Kernal.WriteLine = ConsoleWriteLine;
            Kernal.Write     = ConsoleWrite;
            Kernal.Clear     = ConsoleClear;
            Kernal.ReadLine  = ConsoleReadLine;

            _commandLines.Add("clrscr", (string command) => { ConsoleClear(""); CommandCompleate(null); });
            _commandLines.Add("server.", (string command) => { Kernal.Execute(command); });
            _commandLines.Add("genpass", (string command) =>
            {
                CommandCompleate(null);
            });
            _commandLines.Add("exit", (string command) => { CommandCompleate(null); });
        }