public class ConsoleUtils extends Object
| 构造器和说明 |
|---|
ConsoleUtils() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
consoleWrite(String tip,
Object content)
控制台输出内容
|
static void |
consoleWrite(String tip,
Object content,
boolean newLine,
int blankLine)
控制台输出内容
|
static void |
consoleWrite(String tip,
Object content,
ConsoleFontStyle tipStyle,
ConsoleFontColor tipColor,
ConsoleBackgroundColor tipBackgroundColor,
ConsoleFontStyle contentStyle,
ConsoleFontColor contentColor,
ConsoleBackgroundColor contentBackgroundColor,
boolean newLine,
int blankLine)
控制台输出内容
|
static CompletableFuture<Void> |
consoleWriteAsync(String tip,
Object content,
boolean newLine,
int blankLine,
int delay)
控制台延时输出内容
|
static CompletableFuture<Void> |
consoleWriteAsync(String tip,
Object content,
ConsoleFontStyle tipStyle,
ConsoleFontColor tipColor,
ConsoleBackgroundColor tipBackgroundColor,
ConsoleFontStyle contentStyle,
ConsoleFontColor contentColor,
ConsoleBackgroundColor contentBackgroundColor,
boolean newLine,
int blankLine,
int delay)
控制台延时输出内容
|
static CompletableFuture<Void> |
consoleWriteAsync(String tip,
Object content,
int delay)
控制台延时输出内容
|
static String |
getEchoE(ConsoleFontStyle style,
ConsoleFontColor color,
ConsoleBackgroundColor backgroundColor)
获取终端回显ANSI转义序列
|
public static String getEchoE(ConsoleFontStyle style, ConsoleFontColor color, ConsoleBackgroundColor backgroundColor)
style - 字体样式color - 字体颜色backgroundColor - 背景颜色public static void consoleWrite(String tip, Object content)
tip - 提示content - 内容public static void consoleWrite(String tip, Object content, boolean newLine, int blankLine)
tip - 提示content - 内容newLine - 是否新起一行blankLine - 空行数public static void consoleWrite(String tip, Object content, ConsoleFontStyle tipStyle, ConsoleFontColor tipColor, ConsoleBackgroundColor tipBackgroundColor, ConsoleFontStyle contentStyle, ConsoleFontColor contentColor, ConsoleBackgroundColor contentBackgroundColor, boolean newLine, int blankLine)
tip - 提示content - 内容tipStyle - 提示样式tipColor - 提示颜色tipBackgroundColor - 提示背景颜色contentStyle - 内容样式contentColor - 内容颜色contentBackgroundColor - 内容背景颜色newLine - 是否新起一行blankLine - 空行数public static CompletableFuture<Void> consoleWriteAsync(String tip, Object content, int delay)
tip - 提示content - 内容delay - 单个字符输出的延时时间(单位为毫秒,-1表示为随机延时,20到300毫秒之间)public static CompletableFuture<Void> consoleWriteAsync(String tip, Object content, boolean newLine, int blankLine, int delay)
tip - 提示content - 内容newLine - 是否新起一行blankLine - 空行数delay - 单个字符输出的延时时间(单位为毫秒,-1表示为随机延时,20到300毫秒之间)public static CompletableFuture<Void> consoleWriteAsync(String tip, Object content, ConsoleFontStyle tipStyle, ConsoleFontColor tipColor, ConsoleBackgroundColor tipBackgroundColor, ConsoleFontStyle contentStyle, ConsoleFontColor contentColor, ConsoleBackgroundColor contentBackgroundColor, boolean newLine, int blankLine, int delay)
tip - 提示content - 内容tipStyle - 提示样式tipColor - 提示颜色tipBackgroundColor - 提示背景颜色contentStyle - 内容样式contentColor - 内容颜色contentBackgroundColor - 内容背景颜色newLine - 是否新起一行blankLine - 空行数delay - 单个字符输出的延时时间(单位为毫秒,-1表示为随机延时,20到300毫秒之间)Copyright © 2023. All rights reserved.