lsb

RFE: Add ncurses extensions to LSB

Bug #1326936 reported by Jeff Johnson
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
lsb
Fix Committed
Medium
Unassigned
Mandriva
Fix Released
Wishlist

Bug Description

In the python appbat build we have:

+/* For LSB compilation, ncurses will be found but ncurses
+ * extension to curses aren't part of the specification.
+ * So we try to detect that situation, and work around it
+ */
+#if !defined(getattrs) && !defined(getsyx)
+#define STRICT_SYSV_CURSES /* Don't use ncurses extensions */
+
+#include <term.h>
+#include <unctrl.h>
+
+extern WINDOW * newscr;
+
+#define getattrs(win) ((win)?(win)->_attrs:A_NORMAL)
+#define getsyx(y,x) do { if(newscr->_leaveok) (y)=(x)=-1; \
+ else getyx(newscr,(y),(x)); \
+ } while(0)
+#define setsyx(y,x) do { if((y)==-1 && (x)==-1) newscr->_leaveok=TRUE; \
+ else {newscr->_leaveok=FALSE;wmove(newscr,(y),(x));} \
+ } while(0)
+#endif

So it looks like it uses at least newscr, getattrs, getsysx, setsysx
[reply] [-] Comment 1

Tags: uplift
Changed in mandriva:
importance: Unknown → Wishlist
status: Unknown → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.