Merge pull request #2 from muwat0/colorful-output
feat: colorful and bold text
This commit is contained in:
@@ -48,14 +48,21 @@ std::vector<gpuId> getGpuIds() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
int main (int argc, const char *argv[]) {
|
int main (int argc, const char *argv[]) {
|
||||||
cout << "\t\t\t--- " << getUser() << "@" << getHost() << " ---\n";
|
const string colorRED = "\033[1;31m";
|
||||||
cout << "\t\t distro:\t" << getDistro() << "\n";
|
const string colorGREEN = "\033[1;32m";
|
||||||
cout << "\t\t kernel:\t" << getKernel() << "\n";
|
const string colorBLUE = "\033[1;34m";
|
||||||
cout << "\t\t uptime:\t" << getUptime() << "\n";
|
const string colorYELLOW = "\033[1;33m";
|
||||||
cout << "\t\t shell:\t" << getShell() << "\n";
|
const string colorMAGENTA = "\033[1;35m";
|
||||||
cout << "\t\t CPU: \t" << getCPU() << "\n";
|
const string colorRESET = "\033[0m";
|
||||||
cout << "\t\t GPU: \t" << getGPU() << "\n";
|
|
||||||
cout << "\t\t RAM: \t" << getRAM() << "\n";
|
cout << "\t\t\t--- " << colorGREEN << getUser() << colorRESET << "@" << colorRED << getHost() << colorRESET << " ---\n";
|
||||||
|
cout << colorGREEN << "\t\t distro:\t" << colorRESET << getDistro() << "\n";
|
||||||
|
cout << colorMAGENTA << "\t\t kernel:\t" << colorRESET << getKernel() << "\n";
|
||||||
|
cout << colorBLUE << "\t\t uptime:\t" << colorRESET << getUptime() << "\n";
|
||||||
|
cout << colorMAGENTA << "\t\t shell:\t" << colorRESET << getShell() << "\n";
|
||||||
|
cout << colorYELLOW <<"\t\t CPU: \t" << colorRESET << getCPU() << "\n";
|
||||||
|
cout << colorYELLOW <<"\t\t GPU: \t" << colorRESET << getGPU() << "\n";
|
||||||
|
cout << colorRED << "\t\t RAM: \t" << colorRESET << getRAM() << "\n";
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user