Skip to content
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

Open
firasuke opened this issue Nov 10, 2024 · 2 comments
Open

wgetscrreg is not defined #60

firasuke opened this issue Nov 10, 2024 · 2 comments

Comments

@firasuke
Copy link

firasuke commented Nov 10, 2024

I wonder if there's a function similar to wgetscrreg in netbsd-curses. Do note that wsetscrreg is already defined in netbsd-curses.

@rofl0r
Copy link
Member

rofl0r commented Nov 10, 2024

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.

@firasuke
Copy link
Author

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 netbsd-curses.

I have prepared a PR to upstream with the following changes to curses.h:

int	 wgetscrreg(const WINDOW *, int *, int *);

Will report back in case it gets merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants