/// <summary> /// Starts the actual interactive command line. /// </summary> private void Start() { if (consoleFormatter == null) { completionAction?.Invoke(); } consoleFormatter?.Print(startMessage); while (consoleFormatter?.Read() != exitCommand) { ; } consoleFormatter?.Print(closingMessage); completionAction?.Invoke(); }
public int ReadCharacter() { return(_formatter.Read()); }