From 53b0174322b395a1e0ee0d821f147fc1d7bf15d5 Mon Sep 17 00:00:00 2001 From: nick black Date: Sat, 14 Aug 2021 06:50:26 -0400 Subject: [PATCH] notcurses-info: scrolling details don't emit a hard newline following the emoji line, closing #2021. properly account for distance to logo, closing #2065. --- src/info/main.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/info/main.c b/src/info/main.c index dc6c447b5..960db5cc9 100644 --- a/src/info/main.c +++ b/src/info/main.c @@ -126,7 +126,11 @@ emoji_viz(struct ncplane* n){ } } } - finish_line(n); + int x; + ncplane_cursor_yx(n, NULL, &x); + while(x++ < 80){ + ncplane_putchar(n, ' '); + } return 0; } @@ -291,10 +295,10 @@ unicodedumper(struct ncplane* n, const char* indent){ uint64_t lr = NCCHANNELS_INITIALIZER(0xff, 0xff, 0xff, 0xdB, 0x18, 0x8E); uint64_t ul = NCCHANNELS_INITIALIZER(0xff, 0xff, 0xff, 0x19, 0x19, 0x70); uint64_t ll = NCCHANNELS_INITIALIZER(0xff, 0xff, 0xff, 0x19, 0x19, 0x70); - ncplane_cursor_move_yx(n, y - 16, 0); - ncplane_stain(n, y - 2, 79, ul, ur, ll, lr); + ncplane_cursor_move_yx(n, y - 15, 0); + ncplane_stain(n, y - 1, 79, ul, ur, ll, lr); ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_ITALIC); - ncplane_cursor_move_yx(n, y - 13, 54); + ncplane_cursor_move_yx(n, y - 12, 54); wviz(n, L"🯁🯂🯃https://notcurses.com"); ncplane_set_styles(n, NCSTYLE_NONE); }