Advertisement
j0h

CShellColors.sc

j0h
Apr 23rd, 2023
955
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.36 KB | None | 0 0
  1. #!/bin/bash
  2. echo "#include <stdio.h>"
  3. echo "#define CLEAR  \"\033[0m\""
  4. for i in `seq 10 99`
  5. do
  6. echo -e "#define CLR"$i "\"\\\033[0;"$i"m\""
  7. done
  8.  
  9. echo "int main(){"
  10. echo
  11. for i in `seq 10 99`
  12. do
  13. echo "printf(CLR$i);"
  14. echo  -e "printf(\"%d\","$i"); "
  15. echo "printf(\"\n\");"
  16. done
  17.  
  18. echo
  19.      echo "  printf(CLEAR);"
  20.      echo "  return 0;"
  21.      echo " }"
  22.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement