aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJacki <jacki@thejackimonster.de>2024-03-07 05:55:46 +0100
committerJacki <jacki@thejackimonster.de>2024-03-07 05:55:46 +0100
commit1ba347ec604aa4e5d145c894a815a21302ce53cb (patch)
tree53009a10c29aab2ed758d58542e676b2c1006f19
parent8d5d4608797179606cba833af4a58d6f4576c8d4 (diff)
downloadmessenger-cli-master.tar.gz
messenger-cli-master.zip
Adjust printing information next to the logoHEADv0.2.0master
Signed-off-by: Jacki <jacki@thejackimonster.de>
-rw-r--r--src/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/util.c b/src/util.c
index 3f5d5a4..89155c8 100644
--- a/src/util.c
+++ b/src/util.c
@@ -48,11 +48,11 @@ util_print_info(WINDOW *window,
48 const char *info) 48 const char *info)
49{ 49{
50 const int x = getmaxx(window) - strlen(info) - 1; 50 const int x = getmaxx(window) - strlen(info) - 1;
51 const int y = getcury(window);
51 52
52 if (x < UTIL_LOGO_COLS) 53 if ((x + (y - 2) / 2 < UTIL_LOGO_COLS - 7) ||
54 ((y < 4) && (x < UTIL_LOGO_COLS)))
53 return; 55 return;
54
55 const int y = getcury(window);
56 56
57 wmove(window, y, x); 57 wmove(window, y, x);
58 wprintw(window, "%s", info); 58 wprintw(window, "%s", info);