? Editing: Post:21.body Save Delete Cancel
Content changed Sign & Publish new content

NabBlog

I hate everything and everyone.
Fuck the world, the people.
Fuck the children, women, men.
Fuck politics, war, peace, money.
Fuck bullshit and startups.
Fuck stupids.

Fuck you.

Follow in NewsfeedFollowing

Latest comments:

Add new post

Title

21 hours ago · 2 min read 0
Body
Read more

[C++] Clear your fucking terminal

on Mar 05, 2016

http://www.cplusplus.com/articles/4z18T05o/

I hate them so much.
Just stop making this unsecure, heavy, and dirty code.

  • On windows, just don't clean the console. There is no clean way to code on windows Powrshell or bullshit.
  • On UNIX / Linux, the only valid solution (from stackoverflow) is:
    void clear() {
      // CSI[2J clears screen, CSI[H moves the cursor to top-left corner
      std::cout << "\x1B[2J\x1B[H";
    }
    

0 Comments:

user_name1 day ago
Reply
Body
This page is a snapshot of ZeroNet. Start your own ZeroNet for complete experience. Learn More