Problem with system ("cls")

Answered

Hi, I have problem with syste("cls") in cLion in C++. I included <cstdlib>, but it doesn't work usually. It sometimes works as it wants, e.g. clear a few lines.

How can I fix it? Do I need other compiler or debbugger? Maybe I should change something in Settings?

 

3
7 comments

Hello!

It's not implemented yet. Here is the feature request about the system("clear"): https://youtrack.jetbrains.com/issue/CPP-822. Feel free to comment or upvote.

0

It doesn.t work either. I work on Windows, the compiler can't recognized "clear". 

0

Yes, it doesn't work because it's not supported in CLion yet. That's why I suggest you to comment or upvote the related feature request.

0

Still system.("cls"); is not implemented yet.

0

MANIKANDAN R if you're on Windows, feel free to install CLion 2021.2 EAP (https://www.jetbrains.com/clion/nextversion/) and try using the new "Run in external console" option in a run/debug configuration (https://youtrack.jetbrains.com/issue/CPP-14077).

0

So can I clear console in Linux now?

 

0

Dannmmaster not yet. CPP-822 is not fixed yet, and the "Run in external console" option is available only on Windows for now - CPP-1576. Feel free to comment or upvote the issues in order to get updates. See https://intellij-support.jetbrains.com/hc/en-us/articles/207241135-How-to-follow-YouTrack-issues-and-receive-notifications if you are not familiar with YouTrack.

0

Please sign in to leave a comment.