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

wrefresh(stdscr) causes segfault #22

Open
emakman opened this issue Nov 19, 2018 · 0 comments
Open

wrefresh(stdscr) causes segfault #22

emakman opened this issue Nov 19, 2018 · 0 comments

Comments

@emakman
Copy link

emakman commented Nov 19, 2018

It's my understanding that wrefresh(stdscr) should work exactly the same as nc_refresh(), but I seem to be getting a segfault.

The failing code:

use NCurses;
initscr; endwin; # To make sure stdscr is set
wrefresh(stdscr);
endwin;

On the other hand, the following works:

use NCurses;
use NativeCall;
initscr; endwin; # Again, make sure stdscr is set.
my \intptr_t = (nativesizeof(Pointer) == 8) int64 ?? int32;
wrefresh(Pointer.new(cglobal(library,'stdscr',intptr_t));
endwin;

I'm not entirely convinced this is an NCurses problem (I've opened a bug on rakudo/rakudo), but I was advised on the Perl6 IRC to bring it up here and at this point I'm just referring the issue to anyone who might know what's going on.

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

1 participant