Skip to content
Sign UpLog In
This post is read-only. Explore Repls and connect with other creators on Community.View Community
The info in this post might be out of date, check out our docs instead. View docs
4

Clearing the terminal

LardBoi
LardBoi

I know python has import replit replit.clear() and it's said that it's only supported for python. I was just asking if that's true. I'm coding in C++ and want the terminal cleared.

4 years ago

Voters

Comments

TopNew
2
WendellFranco
WendellFranco

Console.Clear();

2 years ago
2
LardBoi
LardBoi

@WendellFranco
What language? also at the time of this C++ had no repl way of doing it like python did.

2 years ago
1
ash15khng
ash15khng

Currently replit.clear() is only supported on Python, but I think you can suggest it at repl.it/feedback but I think it is quite a popular suggestion so you may not want to make a new thread/post (whatever you call it)

4 years ago
1
LardBoi
LardBoi

@ash15khng
Yes I know but

#include
#include

int main()
{
cout << "Hello World!\n";
replit.clear();

return 0;
}

This doesn't work for C++

4 years ago
1
ash15khng
ash15khng

@LardBoi
You can go and suggest it at repl.it/feedback I think

4 years ago
1
JoshDaBosh
JoshDaBosh

https://repl.it/@JoshDaBosh/DearVigilantSandbox

There's a module called replit that you can import. Call it by taking any user input and calling replit.clear()

4 years ago
Load more