ncneofetch: fill out first line of infoplane

pull/760/head
nick black 4 years ago committed by Nick Black
parent 45fbbdb4ef
commit 4e04c3ae8f

@ -277,18 +277,19 @@ infoplane(struct ncdirect* nc, const fetched_info* fi){
printf("\n");
ncdirect_fg_rgb(nc, 0xd0, 0xd0, 0xd0);
ncdirect_bg_rgb(nc, 0x50, 0x50, 0x50);
ncdirect_styles_on(nc, NCSTYLE_UNDERLINE);
if(ncdirect_cursor_move_yx(nc, -1, infox + 1) < 0){
ncdirect_styles_set(nc, NCSTYLE_UNDERLINE);
if(ncdirect_cursor_move_yx(nc, -1, infox) < 0){
return -1;
}
if(printf("%s %s", fi->kernel, fi->kernver) < 0){
int r = printf(" %s %s", fi->kernel, fi->kernver);
if(r < 0){
return -1;
}
/*
if(fi->distro_pretty){
ncplane_printf_aligned(infop, 1, NCALIGN_RIGHT, "%s ", fi->distro_pretty);
printf("%*s ", planewidth - r, fi->distro_pretty);
}
ncplane_set_attr(infop, NCSTYLE_NONE);
ncdirect_styles_set(nc, NCSTYLE_NONE);
/*
#ifdef __linux__
struct sysinfo sinfo;
sysinfo(&sinfo);

Loading…
Cancel
Save