public override ConCol PopColor() { var color = base.PopColor(); System.Console.ForegroundColor = ColorStack.Peek().ConsoleColor; return(color); }
public void PopStyleScope() { var scope = StyleStack.Count; while (FontStack.Count > 0 && FontStack.Peek().Scope == scope) { FontStack.Pop(); } while (ColorStack.Count > 0 && ColorStack.Peek().Scope == scope) { ColorStack.Pop(); } while (GlyphShaderStack.Count > 0 && GlyphShaderStack.Peek().Scope == scope) { GlyphShaderStack.Pop(); } }