aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2013-01-19 21:30:19 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2013-01-19 21:30:19 +0100
commitdd6c4b0cac7099c827c3cc1a60668ff38032942d (patch)
treea4cd3b4f82efabba09dd9072d6f3646cf355b95e
parent92a9b6ee32ccff64ed9ded76fba8ec02aaf88aff (diff)
downloadsciteco-dd6c4b0cac7099c827c3cc1a60668ff38032942d.tar.gz
support only Scinterm >= v1.1 (contains SCI_COLOR_PAIR macro and indirectly fixes PDCurses support)
-rw-r--r--README1
-rw-r--r--src/interface-ncurses.cpp6
2 files changed, 1 insertions, 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))