about summary refs log tree commit diff stats
path: root/src/ui/console.c
diff options
context:
space:
mode:
authorMichael Vetter <jubalh@iodoru.org>2023-03-13 09:18:18 +0100
committerGitHub <noreply@github.com>2023-03-13 09:18:18 +0100
commite5e8ff221a08939b43edf488fa2a3b8fe95169ea (patch)
treebab370288daa0ec39923f61697f9f82787246755 /src/ui/console.c
parentf618b9cc16c37aa832202340f2f4cf2b29348026 (diff)
parent2936b09a63728c9ac0c1e92786d37fec673da8d2 (diff)
downloadprofani-tty-e5e8ff221a08939b43edf488fa2a3b8fe95169ea.tar.gz
Merge pull request #1796 from profanity-im/minor-improvements
Minor improvements
Diffstat (limited to 'src/ui/console.c')
-rw-r--r--src/ui/console.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/ui/console.c b/src/ui/console.c
index b1720415..bab8e17c 100644
--- a/src/ui/console.c
+++ b/src/ui/console.c
@@ -915,10 +915,12 @@ cons_show_qrcode(const char* const text)
         strcat(pad, "\u2588\u2588");
     }
 
-    win_println(console, THEME_DEFAULT, "", pad);
+    win_println(console, THEME_DEFAULT, "", "");
+    win_println(console, THEME_DEFAULT, "", "");
+    win_println(console, THEME_DEFAULT, "", "%s", pad);
     for (size_t y = 0; y < width; y += ZOOM_SIZE) {
         for (size_t x = 0; x < width; x += ZOOM_SIZE) {
-            strcat(buf, !(*data & 1) ? "\u2588\u2588" : "\u2800\u2800");
+            strcat(buf, !(*data & 1) ? "\u2588\u2588" : "  ");
 
             data++;
         }
@@ -929,6 +931,8 @@ cons_show_qrcode(const char* const text)
         buf[0] = '\0';
     }
     win_println(console, THEME_DEFAULT, "", "%s", pad);
+    win_println(console, THEME_DEFAULT, "", "");
+    win_println(console, THEME_DEFAULT, "", "");
 
     free(pad);
     free(buf);