From dd6c4b0cac7099c827c3cc1a60668ff38032942d Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Sat, 19 Jan 2013 21:30:19 +0100 Subject: support only Scinterm >= v1.1 (contains SCI_COLOR_PAIR macro and indirectly fixes PDCurses support) --- README | 1 + src/interface-ncurses.cpp | 6 ------ 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/README b/README index 9bd7d85..3329aeb 100644 --- a/README +++ b/README @@ -47,6 +47,7 @@ SciTECO has the following build and runtime dependencies: * Autotools, GNU C, C++ and [Gob2](http://www.jirka.org/gob.html) * [Glib](http://developer.gnome.org/glib/), as a cross-platform runtime library * [Scintilla](http://www.scintilla.org/), and possibly [Scinterm](http://foicica.com/scinterm/) + (v1.1 or later) * [GTK+ 2](http://www.gtk.org/), [NCurses](http://www.gnu.org/software/ncurses/), [PDCurses/XCurses](http://pdcurses.sourceforge.net/) or [PDCurses/Win32a](http://www.projectpluto.com/win32a.htm). diff --git a/src/interface-ncurses.cpp b/src/interface-ncurses.cpp index 035a9a3..f376a1f 100644 --- a/src/interface-ncurses.cpp +++ b/src/interface-ncurses.cpp @@ -51,12 +51,6 @@ static void scintilla_notify(Scintilla *sci, int idFrom, /* FIXME: should be configurable in TECO (Function key substitutes) */ #define ESCAPE_SURROGATE KEY_DC -#ifndef SCI_COLOR_PAIR -/* from ScintillaTerm.cxx */ -#define SCI_COLOR_PAIR(f, b) \ - ((b) * 8 + (f) + 1) -#endif - #define SCI_COLOR_ATTR(f, b) \ COLOR_PAIR(SCI_COLOR_PAIR(f, b)) -- cgit v1.2.3