summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBerk Geveci <berk.geveci@kitware.com>2001-11-30 16:34:13 (GMT)
committerBerk Geveci <berk.geveci@kitware.com>2001-11-30 16:34:13 (GMT)
commitb64e2b83b048299aefa9239242f490a3e9e59986 (patch)
tree3f6c77ad5136e6f9b79231802048434661a563ad
parent1499a4268d3038abf3947b1e8ec15b00e7f1d91c (diff)
downloadCMake-b64e2b83b048299aefa9239242f490a3e9e59986.zip
CMake-b64e2b83b048299aefa9239242f490a3e9e59986.tar.gz
CMake-b64e2b83b048299aefa9239242f490a3e9e59986.tar.bz2
Can non use clear because it is undef'ed.
-rw-r--r--Source/CursesDialog/ccmake.cxx2
-rw-r--r--Source/CursesDialog/cmCursesLongMessageForm.cxx2
-rw-r--r--Source/CursesDialog/cmCursesMainForm.cxx4
-rw-r--r--Source/CursesDialog/cmCursesStandardIncludes.h5
4 files changed, 9 insertions, 4 deletions
diff --git a/Source/CursesDialog/ccmake.cxx b/Source/CursesDialog/ccmake.cxx
index 0bf5617..a05d726 100644
--- a/Source/CursesDialog/ccmake.cxx
+++ b/Source/CursesDialog/ccmake.cxx
@@ -101,7 +101,7 @@ int main(int argc, char** argv)
myform->HandleInput();
// Need to clean-up better
- clear();
+ curses_clear();
touchwin(stdscr);
endwin();
delete cmCursesForm::CurrentForm;
diff --git a/Source/CursesDialog/cmCursesLongMessageForm.cxx b/Source/CursesDialog/cmCursesLongMessageForm.cxx
index 8edb956..731e92e 100644
--- a/Source/CursesDialog/cmCursesLongMessageForm.cxx
+++ b/Source/CursesDialog/cmCursesLongMessageForm.cxx
@@ -106,7 +106,7 @@ void cmCursesLongMessageForm::Render(int left, int top, int width, int height)
const char* msg = m_Messages.c_str();
- clear();
+ curses_clear();
if (m_Fields[0])
{
diff --git a/Source/CursesDialog/cmCursesMainForm.cxx b/Source/CursesDialog/cmCursesMainForm.cxx
index fd77c85..b285596 100644
--- a/Source/CursesDialog/cmCursesMainForm.cxx
+++ b/Source/CursesDialog/cmCursesMainForm.cxx
@@ -332,7 +332,7 @@ void cmCursesMainForm::UpdateStatusBar()
if ( x < cmCursesMainForm::MIN_WIDTH ||
y < cmCursesMainForm::MIN_HEIGHT )
{
- clear();
+ curses_clear();
curses_move(0,0);
printw("Window is too small. A size of at least %dx%d is required.",
cmCursesMainForm::MIN_WIDTH, cmCursesMainForm::MIN_HEIGHT);
@@ -434,7 +434,7 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
int x,y;
getmaxyx(stdscr, y, x);
- clear();
+ curses_clear();
curses_move(1,1);
printw("Running CMake, please wait.");
touchwin(stdscr);
diff --git a/Source/CursesDialog/cmCursesStandardIncludes.h b/Source/CursesDialog/cmCursesStandardIncludes.h
index d993a60..a88546c 100644
--- a/Source/CursesDialog/cmCursesStandardIncludes.h
+++ b/Source/CursesDialog/cmCursesStandardIncludes.h
@@ -28,6 +28,11 @@ inline void curses_move(unsigned int x, unsigned int y)
move(x,y);
}
+inline void curses_clear()
+{
+ clear();
+}
+
#undef move
#undef erase
#undef clear