display.h revision 1.1
11.1Sjwise/*	$NetBSD: display.h,v 1.1 2001/01/04 04:41:41 jwise Exp $	*/
21.1Sjwise
31.1Sjwise/*-
41.1Sjwise * Copyright (c) 2001 The NetBSD Foundation, Inc.
51.1Sjwise * All rights reserved.
61.1Sjwise *
71.1Sjwise * Redistribution and use in source and binary forms, with or without
81.1Sjwise * modification, are permitted provided that the following conditions
91.1Sjwise * are met:
101.1Sjwise * 1. Redistributions of source code must retain the above copyright
111.1Sjwise *    notice, this list of conditions and the following disclaimer.
121.1Sjwise * 2. Redistributions in binary form must reproduce the above copyright
131.1Sjwise *    notice, this list of conditions and the following disclaimer in the
141.1Sjwise *    documentation and/or other materials provided with the distribution.
151.1Sjwise * 3. Neither the name of The NetBSD Foundation nor the names of its
161.1Sjwise *    contributors may be used to endorse or promote products derived
171.1Sjwise *    from this software without specific prior written permission.
181.1Sjwise *
191.1Sjwise * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
201.1Sjwise * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
211.1Sjwise * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
221.1Sjwise * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
231.1Sjwise * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
241.1Sjwise * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
251.1Sjwise * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
261.1Sjwise * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
271.1Sjwise * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
281.1Sjwise * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
291.1Sjwise * POSSIBILITY OF SUCH DAMAGE.
301.1Sjwise */
311.1Sjwise
321.1Sjwise#ifdef SIGTSTP
331.1Sjwise#define SCREENTEST()	(initscr() != NULL && signal(SIGTSTP, SIG_DFL) != SIG_ERR && STAT_R < COLS && SCROLL_Y > 0)
341.1Sjwise#else
351.1Sjwise#define SCREENTEST()	(initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0)
361.1Sjwise#endif
371.1Sjwise
381.1Sjwiseextern WINDOW *view_w;
391.1Sjwiseextern WINDOW *slot_w;
401.1Sjwiseextern WINDOW *scroll_w;
411.1Sjwiseextern WINDOW *stat_w;
421.1Sjwiseextern WINDOW *turn_w;
431.1Sjwise
44