summary refs log tree commit diff
path: root/src/libnmc-base/nm-client-utils.c
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2023-10-04 11:44:49 +0200
committerMichael Biebl <biebl@debian.org>2023-10-04 11:44:49 +0200
commitd4d8b2b91f7ba000d97a8b2aab48c85000c11314 (patch)
tree4bae747b430c9dae89c22cbf298cbf6c862a52b8 /src/libnmc-base/nm-client-utils.c
parent05e4a733f2141995181a551854d5df929f084adf (diff)
New upstream version 1.44.2 upstream/1.44.2
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");
                 }