Ask coding questions

← Back to all posts
How to clear console in C# ?
Simon_WilliamWi (0)

Importing 'replit' only works for Python.

Comments
hotnewtop
SPQR (589)

print "\033[2J" to console

SPQR (589)

@theangryepicbanana I don't think so, ESC[2J is supposed to reset the cursor position as well as clear the screen. Could be different depending on the terminal, though.