From 9ae9f4f6f5d25d7e06fae6e58754f808a1f26530 Mon Sep 17 00:00:00 2001 From: CharlesCatYT <62410083+CharlesCatYT@users.noreply.github.com> Date: Tue, 21 May 2024 13:44:07 -0400 Subject: [PATCH] Update CommandLine.hx --- source/CommandLine.hx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/CommandLine.hx b/source/CommandLine.hx index d061bd64e8..8a2219a9ed 100644 --- a/source/CommandLine.hx +++ b/source/CommandLine.hx @@ -5,6 +5,13 @@ package source; // Yeah, I know... */ class CommandLine { + // Wrapper shits! + inline public static function print(txt:String) + { + Sys.println(txt); +} + // + public static function prettyPrint(txt:String) { var myLines:Array = txt.split("\n"); @@ -26,7 +33,7 @@ class CommandLine Sys.println('╚$immaHeadOut╝'); } - + public static function centerTxt(txt:String, width:Int):String { var theOffset = (width - txt.length) / 2;