Can non use clear because it is undef'ed.
This commit is contained in:
parent
1499a4268d
commit
b64e2b83b0
|
@ -101,7 +101,7 @@ int main(int argc, char** argv)
|
||||||
myform->HandleInput();
|
myform->HandleInput();
|
||||||
|
|
||||||
// Need to clean-up better
|
// Need to clean-up better
|
||||||
clear();
|
curses_clear();
|
||||||
touchwin(stdscr);
|
touchwin(stdscr);
|
||||||
endwin();
|
endwin();
|
||||||
delete cmCursesForm::CurrentForm;
|
delete cmCursesForm::CurrentForm;
|
||||||
|
|
|
@ -106,7 +106,7 @@ void cmCursesLongMessageForm::Render(int left, int top, int width, int height)
|
||||||
|
|
||||||
const char* msg = m_Messages.c_str();
|
const char* msg = m_Messages.c_str();
|
||||||
|
|
||||||
clear();
|
curses_clear();
|
||||||
|
|
||||||
if (m_Fields[0])
|
if (m_Fields[0])
|
||||||
{
|
{
|
||||||
|
|
|
@ -332,7 +332,7 @@ void cmCursesMainForm::UpdateStatusBar()
|
||||||
if ( x < cmCursesMainForm::MIN_WIDTH ||
|
if ( x < cmCursesMainForm::MIN_WIDTH ||
|
||||||
y < cmCursesMainForm::MIN_HEIGHT )
|
y < cmCursesMainForm::MIN_HEIGHT )
|
||||||
{
|
{
|
||||||
clear();
|
curses_clear();
|
||||||
curses_move(0,0);
|
curses_move(0,0);
|
||||||
printw("Window is too small. A size of at least %dx%d is required.",
|
printw("Window is too small. A size of at least %dx%d is required.",
|
||||||
cmCursesMainForm::MIN_WIDTH, cmCursesMainForm::MIN_HEIGHT);
|
cmCursesMainForm::MIN_WIDTH, cmCursesMainForm::MIN_HEIGHT);
|
||||||
|
@ -434,7 +434,7 @@ void cmCursesMainForm::RunCMake(bool generateMakefiles)
|
||||||
int x,y;
|
int x,y;
|
||||||
getmaxyx(stdscr, y, x);
|
getmaxyx(stdscr, y, x);
|
||||||
|
|
||||||
clear();
|
curses_clear();
|
||||||
curses_move(1,1);
|
curses_move(1,1);
|
||||||
printw("Running CMake, please wait.");
|
printw("Running CMake, please wait.");
|
||||||
touchwin(stdscr);
|
touchwin(stdscr);
|
||||||
|
|
|
@ -28,6 +28,11 @@ inline void curses_move(unsigned int x, unsigned int y)
|
||||||
move(x,y);
|
move(x,y);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline void curses_clear()
|
||||||
|
{
|
||||||
|
clear();
|
||||||
|
}
|
||||||
|
|
||||||
#undef move
|
#undef move
|
||||||
#undef erase
|
#undef erase
|
||||||
#undef clear
|
#undef clear
|
||||||
|
|
Loading…
Reference in New Issue