mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-06 03:20:26 +00:00
progbar PoC: check hbar_make() result #1348
This commit is contained in:
parent
07dd9dddde
commit
5facfbd78a
@ -136,12 +136,20 @@ int main(void){
|
||||
ncprogbar_destroy(ncp);
|
||||
ncplane_erase(notcurses_stdplane(nc));
|
||||
ncp = hbar_make(nc, NCPROGBAR_OPTION_RETROGRADE);
|
||||
if(ncp == NULL){
|
||||
notcurses_stop(nc);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if(pbar_fill(nc, ncp)){
|
||||
notcurses_stop(nc);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
ncprogbar_destroy(ncp);
|
||||
ncp = hbar_make(nc, 0);
|
||||
if(ncp == NULL){
|
||||
notcurses_stop(nc);
|
||||
return EXIT_FAILURE;
|
||||
}
|
||||
if(pbar_fill(nc, ncp)){
|
||||
notcurses_stop(nc);
|
||||
return EXIT_FAILURE;
|
||||
|
Loading…
Reference in New Issue
Block a user