Files
gentoo/dev-libs/tvision/files/tvision-2.2.3-fix-ncurses.patch
Brett A C Sheffield 0bb0469929 dev-libs/tvision: fix build w/ opaque ncurses structures
- revbump
- update EAPI 7 -> 8
- HOMEPAGE -> https

Closes: https://bugs.gentoo.org/930113
Signed-off-by: Brett A C Sheffield <bacs@librecast.net>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/588
Merges: https://codeberg.org/gentoo/gentoo/pulls/588
Signed-off-by: Sam James <sam@gentoo.org>
2026-04-11 00:46:46 +01:00

23 lines
899 B
Diff

https://bugs.gentoo.org/930113
--- a/classes/unix/unixscr.cc 2026-04-10 19:20:16.696979830 -0000
+++ b/classes/unix/unixscr.cc 2026-04-10 19:19:38.871760425 -0000
@@ -299,7 +299,8 @@
}
/* Configure curses */
- stdscr->_flags |= _ISPAD;
+ WINDOW *pad;
+ pad = newpad(getmaxy(stdscr), getmaxx(stdscr));
// Make curses interpret the escape sequences
keypad(stdscr,TRUE);
// SET: remove the buffering and pass the values directly to us. The man
@@ -749,7 +750,7 @@
#endif
// SET: Enhanced the cleanup
// 1) Undo this nasty trick or curses will fail to do the rest:
- stdscr->_flags &= ~_ISPAD;
+ //stdscr->_flags &= ~_ISPAD;
// 2) Now reset the attributes, there is no "default color", is an atribute
// I know the name of only some attributes: 0=normal (what we need),
// 1=bold, 4=underline, 5=blink, 7=inverse and I think they are 9: