notcurses-info: require at least 80 columns

pull/2061/head
nick black 3 years ago
parent 3d829846cc
commit eae2295a5b
No known key found for this signature in database
GPG Key ID: 5F43400C21CBFACC

@ -439,7 +439,13 @@ int main(int argc, const char** argv){
return EXIT_FAILURE;
}
const char indent[] = "";
struct ncplane* stdn = notcurses_stdplane(nc);
int dimx;
struct ncplane* stdn = notcurses_stddim_yx(nc, NULL, &dimx);
if(dimx < 80){
notcurses_stop(nc);
fprintf(stderr, "This program requires at least 80 columns.\n");
return EXIT_FAILURE;
}
ncplane_set_scrolling(stdn, true);
tinfo_debug_caps(stdn, &nc->tcache, indent);
tinfo_debug_styles(nc, stdn, indent);

Loading…
Cancel
Save