display.h revision 1.4
11.4Sdholland/* $NetBSD: display.h,v 1.4 2009/03/14 19:35:13 dholland 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.4Sdholland * 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.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.4Sdholland#define SCREENTEST() (initscr() != NULL && \ 341.4Sdholland signal(SIGTSTP, SIG_DFL) != SIG_ERR && \ 351.4Sdholland STAT_R < COLS && SCROLL_Y > 0) 361.1Sjwise#else 371.1Sjwise#define SCREENTEST() (initscr() != NULL && STAT_R < COLS && SCROLL_Y > 0) 381.1Sjwise#endif 391.1Sjwise 401.1Sjwiseextern WINDOW *view_w; 411.1Sjwiseextern WINDOW *slot_w; 421.1Sjwiseextern WINDOW *scroll_w; 431.1Sjwiseextern WINDOW *stat_w; 441.1Sjwiseextern WINDOW *turn_w; 451.1Sjwise 46