tinierfetch/tinierfetch.cpp

5 lines
315 B
C++
Raw Normal View History

2023-09-10 21:59:08 +00:00
#include <iostream>
#define e getenv
2023-09-10 22:22:28 +00:00
#define p <<
int main() { std::cout p "\e[31muser:\e[0m " p e("USER") p "\n\e[32msh:\e[0m " p e("SHELL") p "\n\e[33mterm:\e[0m " p e("TERM") p "\n\e[34mlocale:\e[0m " p e("LANG") p "\n\x1b[35mcolors: \x1b[0m\x1b[41m \x1b[42m \x1b[43m \x1b[44m " "\x1b[45m \x1b[0m\n"; return 0;}