public void Write(IRenderable renderable) { foreach (var segment in renderable.GetSegments(_console)) { if (segment.IsControlCode) { continue; } if (_lastStyle?.Equals(segment.Style) != true) { SetStyle(segment.Style); } _console.Profile.Out.Write(segment.Text.NormalizeNewLines(native: true)); } }
public void Render(IEnumerable <Segment> segments) { foreach (var segment in segments) { if (segment.IsControlCode) { continue; } if (_lastStyle?.Equals(segment.Style) != true) { SetStyle(segment.Style); } _profile.Out.Write(segment.Text.NormalizeNewLines(native: true)); } }