notcurses icon indicating copy to clipboard operation
notcurses copied to clipboard

Getting the new window size when receiving `NCKEY_RESIZE`

Open mulle-nat opened this issue 5 months ago • 1 comments

So I do a notcurses_get and I get a NCKEY_RESIZE back. I naively assumed that I could ask notcurses_term_dim_yx for the new dimensions. Alas these give me the old dimensions. Looking through the code, there is a "update_term_.." function, which I could call. That probably does what I want, but since this is not "official" API, I wonder if I am not walking in a pitfall here. I don't want to render anything at this point.

Ideally of course the new size would be part of ncinput, so I don't have to do this :wink:

mulle-nat avatar Jan 31 '24 22:01 mulle-nat