-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUtils.java
More file actions
22 lines (18 loc) · 937 Bytes
/
Copy pathUtils.java
File metadata and controls
22 lines (18 loc) · 937 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
public class Utils {
private static final String RESET = "\u001B[0m";
private static final String RED = "\u001B[31m";
private static final String GREEN = "\u001B[32m";
private static final String CYAN = "\u001B[36m";
private static final String YELLOW = "\u001B[33m";
private static final String WHITE = "\u001B[37m";
private static final String PINK = "\u001B[38;5;205m";
private static final String CLEAR_SCREEN = "\033[H\033[2J";
public static final String BLUE = "\u001B[34m";
private static void drawBanner(String title, String color) {
int width = 50;
String padding = " ".repeat((width - title.length()) / 2);
System.out.println(color + "┌" + "─".repeat(width) + "┐" + RESET);
System.out.printf(color + "│%s%s%s│\n" + RESET, padding, title, padding);
System.out.println(color + "└" + "─".repeat(width) + "┘" + RESET);
}
}