MCPcopy Create free account
hub / github.com/Hello-hao/Tbed / Print

Class Print

src/main/java/cn/hellohao/utils/Print.java:3–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1package cn.hellohao.utils;
2
3public class Print {
4// 正常normal
5// 警告 warning
6
7 /*  样式:
8
9    0  空样式
10
11    1  粗体
12
13    4  下划线
14
15    7  反色
16
17    颜色1:
18
19    30  白色
20
21    31  红色
22
23    32  绿色
24
25    33  黄色
26
27    34  蓝色
28
29    35  紫色
30
31    36  浅蓝
32
33    37  灰色
34
35    背景颜色:
36
37    40-47 和颜色顺序相同
38
39    颜色2:
40
41    90-97  比颜色1更鲜艳一些,我也不太清楚为什么又两种
42 * */
43 public static void Normal(Object object){
44 System.out.println("\033[32;1m" + object + "\033[0m");
45 }
46 public static void warning(Object object){
47 System.out.println("\033[31;1m" + object + "\033[0m");
48 }
49
50}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected