コード例 #1
0
 private static void HandleKey(ConsoleKeyInfo keyInfo)
 {
     if (keyInfo.Key != ConsoleKey.Enter)
     {
         handler.Handle(keyInfo);
     }
     else
     {
         CLIOutput.WriteLine();
         CLI.HandleQuery(handler.Text);
         ReadLine.AddHistory(handler.Text);
         CreateHandler();
     }
 }
コード例 #2
0
        public static void Update()
        {
            if (handler == null)
            {
                CreateHandler();
            }

            if (Console.KeyAvailable)
            {
                HandleKey(Console.ReadKey(true));
            }

            CLI.UpdateTitle();
        }