You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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:
On the other hand, the following works:
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.
The text was updated successfully, but these errors were encountered: