From 81df2f2b19551e2331a3d6a2a2440c6e70c90a4f Mon Sep 17 00:00:00 2001 From: Paul Beckingham Date: Sun, 12 Jul 2009 13:09:52 -0400 Subject: [PATCH] Bug Fix - ncurses failed to build on Snow Leopard without this change. --- src/interactive.cpp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/interactive.cpp b/src/interactive.cpp index de5ab66d2..a2e5a59f4 100644 --- a/src/interactive.cpp +++ b/src/interactive.cpp @@ -28,6 +28,7 @@ //#include #include //#include +//#include //#include //#include #include "Context.h" @@ -57,9 +58,14 @@ int Context::interactive () // throw std::string ("unimplemented Context::interactive"); // Fake interactive teaser... +/* WINDOW* w = initscr (); int width = w->_maxx + 1; int height = w->_maxy + 1; +*/ + initscr (); + int width = COLS; + int height = LINES; (void) nonl (); (void) cbreak (); @@ -135,8 +141,12 @@ int Context::getWidth () #ifdef HAVE_LIBNCURSES if (config.get ("curses", true)) { +/* WINDOW* w = initscr (); width = w->_maxx + 1; +*/ + initscr (); + width = COLS; endwin (); std::stringstream out;