1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
$NetBSD: patch-aq,v 1.3 2009/07/25 17:37:04 tonnerre Exp $
--- /dev/null 2009-07-25 19:31:04.000000000 +0200
+++ mvchgat.c 2009-07-25 19:30:48.000000000 +0200
@@ -0,0 +1,32 @@
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#ifdef HAVE_NCURSESW_NCURSES_H
+#include <ncursesw/ncurses.h>
+#endif
+#ifdef HAVE_NCURSES_NCURSES_H
+#include <ncurses/ncurses.h>
+#endif
+#ifdef HAVE_NCURSES_H
+#include <ncurses.h>
+#endif
+
+#ifndef HAVE_MVWCHGAT
+int
+mvwchgat(WINDOW *win, int y, int x, int count, attr_t attr, short color,
+ const void *opts)
+{
+ wmove(win, y, x);
+ return wattr_set(win, attr, color, opts);
+}
+#endif
+
+#ifndef HAVE_MVCHGAT
+int
+mvchgat(int y, int x, int count, attr_t attr, short color,
+ const void *opts)
+{
+ return mvwchgat(stdscr, y, x, count, attr, color, opts);
+}
+#endif
|