private void AppendText(string text, OutputEntryKind kind, InteractiveWindowColor color) { var newProps = new OutputEntryProperties(kind, color); if (_outputEntries.Count == 0 || _outputEntries[_outputEntries.Count - 1].Properties != newProps) { _outputEntries.Add(new OutputEntry(newProps)); } var buffer = _outputEntries[_outputEntries.Count - 1].Buffer; buffer.Append(text); }
public OutputEntry(OutputEntryProperties properties) { Properties = properties; Buffer = new StringBuilder(); }
private void AppendText(string text, OutputEntryKind kind, ConsoleColor color) { var newProps = new OutputEntryProperties(kind, color); if (_outputEntries.Count == 0 || _outputEntries[_outputEntries.Count - 1].Properties != newProps) { _outputEntries.Add(new OutputEntry(newProps)); } var buffer = _outputEntries[_outputEntries.Count - 1].Buffer; buffer.Append(text); }