Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once
- #include <iostream>
- #include <Windows.h>
- namespace grp{
- inline void SetColor(unsigned short a) {
- HANDLE h = GetStdHandle(STD_OUTPUT_HANDLE);
- SetConsoleTextAttribute(h, a);
- }
- inline void gotoxy(int x, int y){
- COORD coordinates;
- coordinates.X = x;
- coordinates.Y = y;
- SetConsoleCursorPosition(GetStdHandle(STD_OUTPUT_HANDLE),coordinates);
- }
- void ShowColorInfo(){
- int index = 0;
- while(index < 8191){
- std::cout<<" Test "<<std::endl;
- SetColor(index);
- std::cout<<" - "<<index;
- index++;
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement