-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wgetscrreg is not defined #60
Comments
as the setter part is already there, it shouldn't be too hard to add. though first i'd check the netbsd-src repo if it was already added upstream, if not send them a PR (or patch via ML). that way it will land in this repo automatically the next time i start backporting (which is quite some effort each time which i'm not seeing myself doing in the near future - the porting itself isn't the worst part, but ironing out new bugs and incompatibilities with the terminfo db is - that's why sabotage itself still uses 0.3.1). if they already have the code we may add it directly without a complete backport. |
Thank you for your work on I have prepared a PR to upstream with the following changes to int wgetscrreg(const WINDOW *, int *, int *); Will report back in case it gets merged. |
maybe you should've put curses into the title: http://mail-index.netbsd.org/netbsd-bugs/2024/11/10/msg086293.html
that's not enough, you also need to implement the actual function. |
Oh it is not implemented indeed. Looking at #define wgetscrreg(win,t,b) (NCURSES_OK_ADDR(win) ? (*(t) = (win)->_regtop, *(b) = (win)->_regbottom, OK) : ERR) I wonder how it would be implemented in NetBSD curses.. |
basically the reversal of the existing wsetscrreg function. let's say, without having looked at it, that wset... does: |
It should be fixed by now, can you please backport the fix so I can test and report back? |
try this patch https://0x0.st/X769.patch which contains the essence of the commit. a proper version of this will land once i get around to do the next full backport session. |
I can confirm that the patch you provided works. I can now build Thanks! |
cool. you should give brett lymn a heads-up that it fixes your issue, since he's waiting for a reply. |
Already did. Feel free to close this issue. Thanks for your time! |
I wonder if there's a function similar to
wgetscrreg
innetbsd-curses
. Do note thatwsetscrreg
is already defined innetbsd-curses
.The text was updated successfully, but these errors were encountered: