Exemple #1
0
        public ClockworkWindow(Formatter formatter)
            : base(formatter)
        {
            formatter.EndOutput = message =>
            {
                if (string.Equals(message, ">", StringComparison.OrdinalIgnoreCase))
                {
                    // Printing to screen has finished. Send response message.
                    SendResponseMessage();
                }

                // Buffer print message until finished.
                _messageBuffer.Add(message);
            };
        }
Exemple #2
0
 private NullWindow(Formatter formatter)
     : base(formatter)
 {
 }