Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdlib>
- #include <iostream>
- #include <sstream>
- using namespace std;
- /*
- *
- */
- int main() {
- ostringstream ss;
- ss.str("\E[0m");
- string default_console = ss.str();
- for (int i = 0; i < 16; i++)
- {
- for (int j = 0; j < 16; j++)
- {
- int col = i+j*16;
- ss.str("");
- ss << "\E[0;37m\E[38;05;" << col << "m";
- string color = ss.str();
- cout << default_console << color << col << "\t";
- }
- cout << endl;
- }
- std::cout << "Done" << std::endl;
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement