reader poc: initialize ncreader_options #403

pull/592/head
nick black 4 years ago committed by Nick Black
parent 26db8a66b7
commit f2546c0949

@ -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();

Loading…
Cancel
Save