Ejemplo n.º 1
0
        private static void Main()
        {
            FabulousConsole.ColorLevel = FabulousConsole.GetMaximumSupportedColorMode();
            var a1 = Fabulous
                     .Red
                     .BgHex("#00f")
                     .Underline
                     .Reset
                     .Text("abc");
            var a2 = Fabulous.Yellow.Text("def");
            var a3 = Fabulous
                     .Black
                     .BgWhiteBright
                     .Strikethrough
                     .Text("ghi");

            Fabulous.WriteLine(a1 + a2 + a3);

            Console.WriteLine();
            Console.WriteLine("Press any key to exit...");
            Console.ReadKey(true);
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Writes the collection of styled text using the text representation of the specified array of objects to the standard output stream using the collection of styled text as the specified format information. The current line terminator will also be printed to standard output stream afterwards.
 /// </summary>
 /// <param name="args">An array of objects to write using the styled text format.</param>
 public void WriteLine(params object[] args) => Fabulous.WriteLine(this, args);
Ejemplo n.º 3
0
 /// <summary>
 /// Writes the collection of styled text followed by the current line terminator to the standard output stream.
 /// </summary>
 public void WriteLine() => Fabulous.WriteLine(this);