Example #1
0
        private static void TestFastOutput()
        {
            var limit = Console.BufferHeight;

            for (var i = 0; i < limit; i += 25)
            {
                Terminal.WriteLine($"Output info {i} ({((decimal)i / limit):P})");
                Terminal.BacklineCursor();
            }
        }
Example #2
0
        static void TestFastOutputAndReadPrompt()
        {
            var limit = Console.BufferHeight;

            for (var i = 0; i < limit; i += 25)
            {
                $"Output info {i} ({((decimal) i / limit):P})".Info(typeof(Program));
                Terminal.BacklineCursor();
            }

            var sampleOptions = new Dictionary <ConsoleKey, string>
            {
                { ConsoleKey.A, "Sample A" },
                { ConsoleKey.B, "Sample B" }
            };

            "Please provide an option".ReadPrompt(sampleOptions, "Exit this program");
        }