mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-10 01:29:05 -04:00
notcurses-info: require at least 80 columns
This commit is contained in:
parent
3d829846cc
commit
eae2295a5b
@ -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…
x
Reference in New Issue
Block a user