2001-06-20 06:44:59 +02:00
|
|
|
$NetBSD: patch-aa,v 1.4 2001/06/20 04:45:00 jlam Exp $
|
1999-08-04 19:00:26 +02:00
|
|
|
|
2001-06-20 06:44:59 +02:00
|
|
|
--- cursesterm.cc.orig Mon Apr 5 12:25:45 1999
|
2001-02-08 14:46:04 +01:00
|
|
|
+++ cursesterm.cc
|
2001-06-20 06:44:59 +02:00
|
|
|
@@ -19,13 +19,22 @@
|
1999-08-04 19:00:26 +02:00
|
|
|
#include "config.h"
|
|
|
|
#include <assert.h>
|
|
|
|
#include <sys/time.h>
|
2001-06-20 06:44:59 +02:00
|
|
|
-#include <curses.h>
|
|
|
|
+#include <sys/param.h>
|
|
|
|
+#if (defined(BSD) && BSD >= 199306)
|
1999-09-04 03:09:02 +02:00
|
|
|
+#include <unistd.h>
|
1999-08-04 19:00:26 +02:00
|
|
|
+#endif
|
2001-06-20 06:44:59 +02:00
|
|
|
+#include <ncurses.h>
|
1999-08-04 19:00:26 +02:00
|
|
|
#include <string.h>
|
|
|
|
#include <ctype.h>
|
|
|
|
#include "utility.h"
|
2001-02-08 14:46:04 +01:00
|
|
|
#include "displaybuf.h"
|
|
|
|
#include "terminal.h"
|
|
|
|
#include "cursesterm.h"
|
|
|
|
+
|
|
|
|
+/* workaround for NetBSD curses */
|
|
|
|
+#ifndef A_VERTICAL
|
|
|
|
+#define A_VERTICAL 0x2000
|
|
|
|
+#endif
|
|
|
|
|
|
|
|
/* Mapping of 5250 colors to curses colors */
|
|
|
|
#define A_5250_GREEN (COLOR_PAIR(COLOR_GREEN))
|