Esempio n. 1
0
 void writeANSISegment(ANSISegment segment, bool newline)
 {
     this.InvokeOnUIThread(() =>
     {
         var brush = segment.Color.HasValue
                 ? new SolidColorBrush(segment.Color.Value)
                 : SystemFontBrush;
         write(segment.Text, brush, newline);
     },
     OUTPUT_PRIORITY);
 }
Esempio n. 2
0
 void writeANSISegment(ANSISegment segment, bool newLine)
 {
     var text = segment.Text;
     var brush = segment.Brush ?? Config.SystemFontBrush;
     if (newLine) WriteLine(text, brush);
     else Write(text, brush);
 }