reader poc: initialize ncreader_options #403

This commit is contained in:
nick black 2020-05-08 20:20:26 -04:00 committed by Nick Black
parent 26db8a66b7
commit f2546c0949

View File

@ -13,12 +13,15 @@ auto main() -> int {
ncpp::NotCurses nc;
int dimy, dimx;
nc.get_term_dim(&dimy, &dimx);
ncreader_options opts;
ncreader_options opts{};
opts.physrows = dimy / 2;
opts.physcols = dimx / 2;
opts.egc = strdup("");
//ncpp::Reader nr(nc, 0, 0, &opts);
auto nr = ncreader_create(*nc, 2, 2, &opts);
if(nr == nullptr){
return EXIT_FAILURE;
}
char32_t id;
ncinput ni;
nc.render();