using System; namespace Unosquare.Swan { /// /// A console terminal helper to create nicer output and receive input from the user /// This class is thread-safe :). /// public static partial class Terminal { /// /// Represents a Table to print in console. /// private static class Table { /// /// Gets or sets the color of the border. /// /// /// The color of the border. /// private static ConsoleColor BorderColor { get; } = ConsoleColor.DarkGreen; public static void Vertical() => ((Byte)179).Write(BorderColor); public static void RightTee() => ((Byte)180).Write(BorderColor); public static void TopRight() => ((Byte)191).Write(BorderColor); public static void BottomLeft() => ((Byte)192).Write(BorderColor); public static void BottomTee() => ((Byte)193).Write(BorderColor); public static void TopTee() => ((Byte)194).Write(BorderColor); public static void LeftTee() => ((Byte)195).Write(BorderColor); public static void Horizontal(Int32 length) => ((Byte)196).Write(BorderColor, length); public static void Tee() => ((Byte)197).Write(BorderColor); public static void BottomRight() => ((Byte)217).Write(BorderColor); public static void TopLeft() => ((Byte)218).Write(BorderColor); } } }