From f9b371f83bd98f3dc9aa5136a9dee45d9b1d9ece Mon Sep 17 00:00:00 2001 From: exhq Date: Mon, 26 Feb 2024 13:34:08 +0330 Subject: [PATCH] we're so back (fixed bold escape character) --- .idea/.gitignore | 8 ++++++++ .idea/modules.xml | 8 ++++++++ .idea/neowofetch.iml | 9 +++++++++ .idea/vcs.xml | 6 ++++++ utils/printing.go | 4 ++-- 5 files changed, 33 insertions(+), 2 deletions(-) create mode 100644 .idea/.gitignore create mode 100644 .idea/modules.xml create mode 100644 .idea/neowofetch.iml create mode 100644 .idea/vcs.xml diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..5dd6387 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/neowofetch.iml b/.idea/neowofetch.iml new file mode 100644 index 0000000..5e764c4 --- /dev/null +++ b/.idea/neowofetch.iml @@ -0,0 +1,9 @@ + + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/utils/printing.go b/utils/printing.go index 02eb34f..1c6374b 100644 --- a/utils/printing.go +++ b/utils/printing.go @@ -163,7 +163,7 @@ func parseFormat(format string) (parsedFormat Format) { case "italic": parsedFormat.colorFormat += "\x1b[3m" case "bold": - parsedFormat.colorFormat += "\x1b1" + parsedFormat.colorFormat += "\033[1m" case "nouwu": parsedFormat.noUwuOverride = true case "*": @@ -229,7 +229,7 @@ func CutePrintEnd() { CuteNewLine() } if usepng { - fmt.Print("\x1b7") + fmt.Print("\x1b7") fmt.Printf("\x1b[%dA", logoIndex) fmt.Printf("\x1b]1337;File=inline=1;width=%d;height=%d:", pngWidth, pngHeight) enc := base64.NewEncoder(base64.StdEncoding, os.Stdout)