/****************************************************************************
- * Copyright (c) 2007 Free Software Foundation, Inc. *
+ * Copyright (c) 2007-2009,2011 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: test_get_wstr.c,v 1.5 2007/08/11 17:01:43 tom Exp $
+ * $Id: test_get_wstr.c,v 1.8 2011/01/15 18:15:11 tom Exp $
*
* Author: Thomas E Dickey
*
#include <test.priv.h>
+#if HAVE_CHGAT
+/* NetBSD curses wchgat */
+
#if USE_WIDEC_SUPPORT
#define BASE_Y 6
*buffer = '\0';
rc = ERR;
echo();
- wattrset(txtwin, A_REVERSE);
+ (void) wattrset(txtwin, A_REVERSE);
switch (flavor) {
case eGetStr:
if (txtwin != stdscr) {
break;
}
noecho();
- wattrset(txtwin, A_NORMAL);
+ (void) wattrset(txtwin, A_NORMAL);
wprintw(strwin, "%d", rc);
- waddwstr(strwin, (wchar_t *) buffer);
+ (void) waddwstr(strwin, (wchar_t *) buffer);
wnoutrefresh(strwin);
break;
default:
ExitProgram(EXIT_FAILURE);
}
#endif
+#else
+int
+main(void)
+{
+ printf("This program requires the curses chgat function\n");
+ ExitProgram(EXIT_FAILURE);
+}
+#endif