Example #1
0
 public override void Start()
 {
     ThrowIfNotInitialized();
     HomePackage.DispatchIntent(null, HomePackage.Welcome);
     ReadLine.HistoryEnabled = true;
     if (beeperOn) StopBeeper();
     SetDefaultPrompt();
     Prompt();
 }
Example #2
0
 public override void HandleInput(DateTime time, string input)
 {
     ThrowIfNotInitialized();
     InputEnabled = false;
     if (!string.IsNullOrEmpty(input.Trim()))
     {
         if (!ActivePackage.HandleInput(time, input))
         {
             SayInfoLineIfDebug("Input handled by HOME package.");
             if (!HomePackage.HandleInput(time, input))
             {
                 SayCouldNotUnderstand(input);
             }
         }
     }
     Prompt();
 }