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