import org.fusesource.jansi.Ansi; import org.fusesource.jansi.AnsiConsole; public class tj { public static void main(String[] args) { AnsiConsole.systemInstall(); System.out.println( Ansi.ansi().fg(Ansi.Color.RED).a("Hello 你好").fg(Ansi.Color.GREEN).a(" World 世界").reset() ); AnsiConsole.systemUninstall(); } }