I'm developing an Operating system with cosmos and I'm wondering if someone knew how to clear the console in Cosmos? I want to create a /clear command, and I've tried some solutions, but what is wrong with this code?
Console.Clear();
As you can't scroll as there is no mouse because the GUI is a console. You can just do this(Sorry if there are errors, i've not used c# in 2 weeks.):
if ((input == "clear"))
{
clear();
}
public static void clear()
{
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
Console.WriteLine("");
}