[info] print newline on last line #2196

This commit is contained in:
nick black 2021-11-24 02:33:50 -05:00 committed by nick black
parent 8810ec9bb7
commit 30dedad9df

View File

@ -153,6 +153,9 @@ emoji_viz(struct ncplane* n){
while(x++ < 80){
ncplane_putchar(n, ' ');
}
if(ncplane_dim_x(n) > 80){
ncplane_putchar(n, '\n');
}
return 0;
}
@ -327,8 +330,7 @@ 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 - 15, 0);
ncplane_stain(n, -1, -1, 15, 80, ul, ur, ll, lr);
ncplane_stain(n, y - 16, 0, 16, 80, ul, ur, ll, lr);
ncplane_set_styles(n, NCSTYLE_BOLD | NCSTYLE_ITALIC);
ncplane_cursor_move_yx(n, y - 12, 54);
wviz(n, L"🯁🯂🯃https://notcurses.com");