Skip to content

Instantly share code, notes, and snippets.

@paultag
Created October 25, 2011 14:55
Show Gist options
  • Save paultag/1313020 to your computer and use it in GitHub Desktop.
Save paultag/1313020 to your computer and use it in GitHub Desktop.
clear the screen in c++
#include <iostream>
using namespace std;
int main ( int argc, char ** argv ) {
char msg[] = {
0x1B, '[', '2', 'J', 0x1B, '[', 'H', '\0'
};
std::cout << msg;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment