Esempio n. 1
0
 static bool ExecutePromptCommand(string command, Mono.Terminal.LineEditor lineEditor)
 {
     command = command.Trim ();
     if (command.StartsWith ("!!")) {
         command = command.Substring (2).TrimStart ();
         lineEditor.RemoveLast ();
         switch (command.ToUpper ()) {
         case "SHOWHISTORY":
             lineEditor.ShowHistory ();
             break;
         case "EXIT":
         case "QUIT":
             continuePromptMode = false;
             break;
         default:
             Console.WriteLine ("Unknown prompt command '{0}'", command);
             break;
         }
         return true;
     } else {
         return false;
     }
 }