static void Main(string[] args)
 {
     ConsoleColors.WriteHeader("Your header");
     ConsoleColors.EmptyLine();
     ConsoleColors.WriteGreen("TODO", false);
     ConsoleWaiter.ReadLineWithTimeout();
 }
Пример #2
0
        static void Main(string[] args)
        {
            ConsoleColors.WriteHeader("Please enter your name within the next 5 seconds.");
            var userName = ReadLineWithTimeout(5);

            Console.Clear();
            ConsoleColors.WriteSectionYellow(!string.IsNullOrWhiteSpace(userName) ? $"Hello: {userName}" : "Nothing entered", false);
        }