From 46dcd39399d5a8592141526c0605b7220c44d0d2 Mon Sep 17 00:00:00 2001 From: ChrisFadden Date: Fri, 28 Aug 2015 18:06:08 -0400 Subject: [PATCH] Added colored print statements --- stdlib/io.krak | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) diff --git a/stdlib/io.krak b/stdlib/io.krak index f43645d..79d4e7c 100644 --- a/stdlib/io.krak +++ b/stdlib/io.krak @@ -150,3 +150,35 @@ fun write_file_binary(path: string::string, vdata: vector::vector) { } } +fun BoldRed(): void{ + print("\033[1m\033[31m"); +} + +fun BoldGreen(): void{ + print("\033[1m\033[32m"); +} + +fun BoldYellow(): void{ + print("\033[1m\033[33m"); +} + +fun BoldBlue(): void{ + print("\033[1m\033[34m"); +} + +fun BoldMagenta(): void{ + print("\033[1m\033[35m"); +} + +fun BoldCyan(): void{ + print("\033[1m\033[36m"); +} + +fun Reset(): void{ + print("\033[0m"); +} + + + + +