2016-09-27 22:01:08 +03:00
|
|
|
/* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
|
|
|
|
file Copyright.txt or https://cmake.org/licensing for details. */
|
2001-11-20 16:28:54 +03:00
|
|
|
#ifndef cmCursesStandardIncludes_h
|
|
|
|
#define cmCursesStandardIncludes_h
|
2016-04-29 16:40:20 +03:00
|
|
|
|
2016-09-01 21:05:48 +03:00
|
|
|
#include <cmConfigure.h>
|
|
|
|
|
2001-11-10 00:05:33 +03:00
|
|
|
#if defined(__hpux)
|
2016-05-16 17:34:04 +03:00
|
|
|
#define _BOOL_DEFINED
|
|
|
|
#include <sys/time.h>
|
2003-01-24 18:33:46 +03:00
|
|
|
#endif
|
|
|
|
|
2014-11-18 13:40:05 +03:00
|
|
|
#include <form.h>
|
|
|
|
|
2001-11-20 16:28:54 +03:00
|
|
|
// on some machines move erase and clear conflict with stl
|
|
|
|
// so remove them from the namespace
|
|
|
|
inline void curses_move(unsigned int x, unsigned int y)
|
|
|
|
{
|
2016-05-16 17:34:04 +03:00
|
|
|
move(x, y);
|
2001-11-20 16:28:54 +03:00
|
|
|
}
|
|
|
|
|
2001-11-30 19:34:13 +03:00
|
|
|
inline void curses_clear()
|
|
|
|
{
|
2001-12-04 19:20:24 +03:00
|
|
|
erase();
|
|
|
|
clearok(stdscr, TRUE);
|
2001-11-30 19:34:13 +03:00
|
|
|
}
|
|
|
|
|
2001-11-20 16:28:54 +03:00
|
|
|
#undef move
|
|
|
|
#undef erase
|
|
|
|
#undef clear
|
|
|
|
|
|
|
|
#endif // cmCursesStandardIncludes_h
|