/****************************************************************************
- * Copyright (c) 2017 Free Software Foundation, Inc. *
+ * Copyright 2020,2022 Thomas E. Dickey *
+ * Copyright 2017 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_termattrs.c,v 1.1 2017/06/24 18:26:15 tom Exp $
+ * $Id: test_termattrs.c,v 1.4 2022/05/15 15:55:30 tom Exp $
*
* Demonstrate the termattrs and term_attrs functions.
*/
+#define USE_CURSES
#define USE_TINFO
#include <test.priv.h>
#if HAVE_SETUPTERM
-#define valid(s) ((s != 0) && s != (char *)-1)
-
static FILE *my_fp;
static void