Example #1
0
        public ScriptOutput Append(string text, ConsoleColor color = ConsoleColor.Gray)
        {
            lock (lockHandle) {
                ansiWriter.Write(text, color);
            }

            OnChanged();
            return(this);
        }
Example #2
0
        public ScriptOutput Write(string text, ConsoleColor color = ConsoleColor.Gray)
        {
            if (lockHandle == null)
            {
                throw new ApplicationException("LockHandle is undefined!");
            }

            lock (lockHandle.Value) {
                ansiWriter.Write(text, color);
            }

            OnChanged();
            return(this);
        }