progbar PoC: use retrograde #1202

This commit is contained in:
nick black 2020-12-13 07:31:02 -05:00 committed by Nick Black
parent 82ffac8eed
commit c3b5069eae

View File

@ -76,6 +76,15 @@ int main(void){
return EXIT_FAILURE;
}
ncprogbar_destroy(ncp);
ncp = pbar_make(nc, 0);
if(ncp == NULL){
notcurses_stop(nc);
return EXIT_FAILURE;
}
if(pbar_fill(nc, ncp)){
notcurses_stop(nc);
return EXIT_FAILURE;
}
notcurses_stop(nc);
return EXIT_SUCCESS;
}