'Is there an opposite to "\n" in C#?

Just trying to draw a grid in a console app but the way I have it set up this code would be the easiest.

grid = grid + closeCell + "\n" + cells.ElementAt(x) + "\go up?";


Solution 1:[1]

There is no character for this you can include in a string that will do what you want for the console.

There is a way to go back up via SetCursorPosition(), but it's not how this is normally handled. Instead, you change the order in which you look at the data, so all the data from a particular horizontal row is handled at once.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Joel Coehoorn