Skip to content

Commit

Permalink
Update CommandLine.hx
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesisfeline authored May 21, 2024
1 parent 1e4ec40 commit 9ae9f4f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion source/CommandLine.hx
Original file line number Diff line number Diff line change
Expand Up @@ -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<String> = txt.split("\n");
Expand All @@ -26,7 +33,7 @@ class CommandLine

Sys.println('$immaHeadOut');
}

public static function centerTxt(txt:String, width:Int):String
{
var theOffset = (width - txt.length) / 2;
Expand Down

0 comments on commit 9ae9f4f

Please sign in to comment.