about summary refs log tree commit diff
path: root/src/libnmc-base/nm-client-utils.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libnmc-base/nm-client-utils.c')
-rw-r--r--src/libnmc-base/nm-client-utils.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libnmc-base/nm-client-utils.c b/src/libnmc-base/nm-client-utils.c
index 4ce1ac6c..b052a307 100644
--- a/src/libnmc-base/nm-client-utils.c
+++ b/src/libnmc-base/nm-client-utils.c
@@ -712,6 +712,9 @@ nmc_print_qrcode(const char *str)
                 bool bottom = qrcodegen_getModule(qrcode, x, y + 1);
                 if (top) {
                     g_print(bottom ? " " : "\u2584");
+                } else if (y > size) {
+                    /* Print the last line (the bottom QR border) in light gray, no bg color */
+                    g_print("\033[0;37m\u2580");
                 } else {
                     g_print(bottom ? "\u2580" : "\u2588");
                 }