mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-16 00:13:00 +00:00
reader poc: initialize ncreader_options #403
This commit is contained in:
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…
Reference in New Issue
Block a user