****************************************************************************/
/*
- * $Id: curses.priv.h,v 1.531 2014/03/08 19:58:54 tom Exp $
+ * $Id: curses.priv.h,v 1.535 2014/04/26 18:45:36 juergen Exp $
*
* curses.priv.h
*
#define USE_SIGWINCH 0
#endif
+/*
+ * When building in the MSYS2 environment, the automatic discovery of
+ * the path separator in configure doesn't work properly. So, if building
+ * for MinGW, we enforce the correct Windows PATH separator
+ */
+#ifdef __MINGW32__
+# ifdef NCURSES_PATHSEP
+# undef NCURSES_PATHSEP
+# endif
+# define NCURSES_PATHSEP ';'
+#endif
+
/*
* If desired, one can configure this, disabling environment variables that
* point to custom terminfo/termcap locations.
typedef struct term_driver {
bool isTerminfo;
+ const char* (*td_name)(struct DriverTCB*);
bool (*td_CanHandle)(struct DriverTCB*, const char*, int*);
void (*td_init)(struct DriverTCB*);
void (*td_release)(struct DriverTCB*);
#ifdef __MINGW32__
#include <nc_mingw.h>
extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_WIN_DRIVER;
+extern NCURSES_EXPORT(int) _nc_mingw_isatty(int fd);
+extern NCURSES_EXPORT(int) _nc_mingw_isconsole(int fd);
#endif
extern NCURSES_EXPORT_VAR(TERM_DRIVER) _nc_TINFO_DRIVER;
#endif
#endif
+#ifndef __MINGW32__
+# define NC_ISATTY(fd) isatty(fd)
+#else
+# define NC_ISATTY(fd) _nc_mingw_isatty(fd)
+#endif
+
#ifdef __cplusplus
}
#endif