1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
| public class Color { public static void main(String[] args) { System.out.println("\033[30;1m" + "白b" + "\033[0m"); System.out.println("\033[31;m" + "红" + "\033[0m"); System.out.println("\033[32;m" + "绿" + "\033[0m"); System.out.println("\033[33;4m" + "黄u" + "\033[0m"); System.out.println("\033[34;4m" + "蓝u" + "\033[0m"); System.out.println("\033[35;4m" + "紫u" + "\033[0m"); System.out.println("\033[36;4m" + "青u" + "\033[0m"); System.out.println("\033[37;4m" + "灰u" + "\033[0m"); System.out.println("\033[40;31;4m" + "白底红u" + "\033[0m"); System.out.println("\033[41;32;4m" + "红底绿u" + "\033[0m"); System.out.println("\033[42;33;4m" + "绿底黄u" + "\033[0m"); System.out.println("\033[43;34;4m" + "黄底蓝u" + "\033[0m"); System.out.println("\033[44;35;4m" + "蓝底紫u" + "\033[0m"); System.out.println("\033[45;36;4m" + "紫底青u" + "\033[0m"); System.out.println("\033[46;37;4m" + "青底灰u" + "\033[0m"); System.out.println("\033[47;4m" + "灰底u" + "\033[0m"); System.out.println("\033[31;1m" + "红B" + "\033[0m"); System.out.println("\033[1;4m" + "uB" + "\033[0m"); System.out.println("\033[1;7;4m" + "反色-uB" + "\033[0m"); System.out.println("\033[40;31;1;7;4m" + "反色-白底红uB" + "\033[0m"); } }
|