colors.sh 3.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #!/bin/bash
  2. #
  3. # Created by: Westley K
  4. # Date: Aug 14, 2018
  5. #
  6. # run this in your terminal, and
  7. # you will get nice colors and effects!
  8. #
  9. black="\033[0;30m"
  10. red="\033[0;31m"
  11. green="\033[0;32m"
  12. yellow="\033[0;33m"
  13. blue="\033[0;34m"
  14. pink="\033[0;35m"
  15. teal="\033[0;36m"
  16. white="\033[0;37m"
  17. norm="\033[0m"
  18. printf "Colors:\n"
  19. printf "\033[0;30mHello World! black\033[0m\n"
  20. printf "\033[0;31mHello World! red\033[0m\n"
  21. printf "\033[0;32mHello World! green\033[0m\n"
  22. printf "\033[0;33mHello World! yellow\033[0m\n"
  23. printf "\033[0;34mHello World! blue\033[0m\n"
  24. printf "\033[0;35mHello World! pink\033[0m\n"
  25. printf "\033[0;36mHello World! teal\033[0m\n"
  26. printf "\033[0;37mHello World! white\033[0m\n"
  27. printf "\nBold:\n"
  28. printf "\033[30;1mHello World! grey\033[0m\n"
  29. printf "\033[31;1mHello World! orange\033[0m\n"
  30. printf "\033[32;1mHello World! green\033[0m\n"
  31. printf "\033[33;1mHello World! yellow\033[0m\n"
  32. printf "\033[34;1mHello World! blue\033[0m\n"
  33. printf "\033[35;1mHello World! pink\033[0m\n"
  34. printf "\033[36;1mHello World! teal\033[0m\n"
  35. printf "\033[37;1mHello World! white\033[0m\n"
  36. printf "\nEffects:\n\n"
  37. printf "Black text effects:\n"
  38. printf "\033[30;2mHello World!\033[0m\n"
  39. printf "\033[30;3mHello World!\033[0m\n"
  40. printf "\033[30;4mHello World!\033[0m\n"
  41. printf "\033[30;5mHello World! blink\033[0m\n"
  42. printf "\033[30;6mHello World!\033[0m\n"
  43. printf "\033[30;7mHello World!\033[0m\n"
  44. printf "\033[30;8mHello World!\033[0m\n"
  45. printf "\nRed text effects:\n"
  46. printf "\033[31;2mHello World! faint\033[0m\n"
  47. printf "\033[31;3mHello World! normal\033[0m\n"
  48. printf "\033[31;4mHello World! underline\033[0m\n"
  49. printf "\033[31;5mHello World! blink\033[0m\n"
  50. printf "\033[31;6mHello World! normal, I think\033[0m\n"
  51. printf "\033[31;7mHello World! negative text\033[0m\n"
  52. printf "\nGreen text effects:\n"
  53. printf "\033[32;2mHello World! faint\033[0m\n"
  54. printf "\033[32;3mHello World! normal\033[0m\n"
  55. printf "\033[32;4mHello World! underline\033[0m\n"
  56. printf "\033[32;5mHello World! blink\033[0m\n"
  57. printf "\033[32;6mHello World! normal, I think\033[0m\n"
  58. printf "\033[32;7mHello World! negative text\033[0m\n"
  59. printf "\nYellow text effects:\n"
  60. printf "\033[33;2mHello World! faint\033[0m\n"
  61. printf "\033[33;3mHello World! normal\033[0m\n"
  62. printf "\033[33;4mHello World! underline\033[0m\n"
  63. printf "\033[33;5mHello World! blink\033[0m\n"
  64. printf "\033[33;6mHello World! normal, I think\033[0m\n"
  65. printf "\033[33;7mHello World! negative text\033[0m\n"
  66. printf "\nBlue text effects:\n"
  67. printf "\033[34;2mHello World! faint\033[0m\n"
  68. printf "\033[34;3mHello World! normal\033[0m\n"
  69. printf "\033[34;4mHello World! underline\033[0m\n"
  70. printf "\033[34;5mHello World! blink\033[0m\n"
  71. printf "\033[34;6mHello World! normal, I think\033[0m\n"
  72. printf "\033[34;7mHello World! negative text\033[0m\n"
  73. printf "\nPink text effects:\n"
  74. printf "\033[35;2mHello World! faint\033[0m\n"
  75. printf "\033[35;3mHello World! normal\033[0m\n"
  76. printf "\033[35;4mHello World! underline\033[0m\n"
  77. printf "\033[35;5mHello World! blink\033[0m\n"
  78. printf "\033[35;6mHello World! normal, I think\033[0m\n"
  79. printf "\033[35;7mHello World! negative text\033[0m\n"
  80. printf "\nTeal text effects:\n"
  81. printf "\033[36;2mHello World! faint\033[0m\n"
  82. printf "\033[36;3mHello World! normal\033[0m\n"
  83. printf "\033[36;4mHello World! underline\033[0m\n"
  84. printf "\033[36;5mHello World! blink\033[0m\n"
  85. printf "\033[36;6mHello World! normal, I think\033[0m\n"
  86. printf "\033[36;7mHello World! negative text\033[0m\n"
  87. printf "\nWhite text effects:\n"
  88. printf "\033[37;2mHello World! faint\033[0m\n"
  89. printf "\033[37;3mHello World! normal\033[0m\n"
  90. printf "\033[37;4mHello World! underline\033[0m\n"
  91. printf "\033[37;5mHello World! blink\033[0m\n"
  92. printf "\033[37;6mHello World! normal, I think\033[0m\n"
  93. printf "\033[37;7mHello World! negative text\033[0m\n"
  94. printf "\n"
  95. #
  96. # End script
  97. #