static void Startup(bool started = false, bool print = true) { //resets console colours Console.BackgroundColor = Etc.DEFAULT_BG; Console.ForegroundColor = Etc.DEFAULT_FG; if (!started) { Console.WriteLine(Etc.MakeUnderline("HLTV CLI")); } if (print) { string printout = "\nPlease enter the category to view:\n" + "1. Player of the week\n" + "2. Team rankings\n" + "3. Today's Matches\n" + "4. Results\n" + "5. Recent activity\n" + "(1-5, R to refresh page): "; Console.Write(printout); } HtmlDocument doc = Etc.GetDocFromURL(Etc.DEFAULT_URI); string entry = Console.ReadLine().Trim().ToLower(); Console.WriteLine(""); switch (entry) { case "1": potw.Get(doc); break; case "2": TeamRanking(doc); break; case "3": matches.Get(doc); break; case "4": results.Get(doc); break; case "5": recent.Get(doc); break; case "r": Startup(started: true, print: false); break; } Startup(started: true); }