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

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

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

            OnChanged();
            return(this);
        }