xref: /openbsd-src/usr.bin/top/screen.h (revision 2474f31f4fca807a25a4857f97064533f21ad66d)
1*2474f31fSchl /*	$OpenBSD: screen.h,v 1.6 2008/09/24 18:53:55 chl Exp $	*/
2735f730eSderaadt 
3735f730eSderaadt /*
4735f730eSderaadt  *  Top users/processes display for Unix
5735f730eSderaadt  *  Version 3
6735f730eSderaadt  *
7735f730eSderaadt  * Copyright (c) 1984, 1989, William LeFebvre, Rice University
8735f730eSderaadt  * Copyright (c) 1989, 1990, 1992, William LeFebvre, Northwestern University
9735f730eSderaadt  *
10735f730eSderaadt  * Redistribution and use in source and binary forms, with or without
11735f730eSderaadt  * modification, are permitted provided that the following conditions
12735f730eSderaadt  * are met:
13735f730eSderaadt  * 1. Redistributions of source code must retain the above copyright
14735f730eSderaadt  *    notice, this list of conditions and the following disclaimer.
15735f730eSderaadt  * 2. Redistributions in binary form must reproduce the above copyright
16735f730eSderaadt  *    notice, this list of conditions and the following disclaimer in the
17735f730eSderaadt  *    documentation and/or other materials provided with the distribution.
18735f730eSderaadt  *
19735f730eSderaadt  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
20735f730eSderaadt  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
21735f730eSderaadt  * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
22735f730eSderaadt  * IN NO EVENT SHALL THE AUTHOR OR HIS EMPLOYER BE LIABLE FOR ANY DIRECT, INDIRECT,
23735f730eSderaadt  * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
24735f730eSderaadt  * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25735f730eSderaadt  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
26735f730eSderaadt  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
27735f730eSderaadt  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
28735f730eSderaadt  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
29735f730eSderaadt  */
307cb5cbe1Sdownsj 
317cb5cbe1Sdownsj /*
327cb5cbe1Sdownsj  *  top - a top users display for Unix 4.2
337cb5cbe1Sdownsj  *
347cb5cbe1Sdownsj  *  This file contains all the definitions necessary to use the hand-written
357cb5cbe1Sdownsj  *  screen package in "screen.c"
367cb5cbe1Sdownsj  */
377cb5cbe1Sdownsj 
387cb5cbe1Sdownsj extern char ch_erase;		/* set to the user's erase character */
397cb5cbe1Sdownsj extern char ch_kill;		/* set to the user's kill  character */
407cb5cbe1Sdownsj extern char smart_terminal;     /* set if the terminal has sufficient termcap
417cb5cbe1Sdownsj 				   capabilities for normal operation */
427cb5cbe1Sdownsj 
437cb5cbe1Sdownsj /* These are some termcap strings for use outside of "screen.c" */
447cb5cbe1Sdownsj 
457cb5cbe1Sdownsj /* rows and columns on the screen according to termcap */
467cb5cbe1Sdownsj extern int  screen_length;
477cb5cbe1Sdownsj extern int  screen_width;
487cb5cbe1Sdownsj 
4933729aa2Sdownsj /* prototypes from screen.c */
50c72b5b24Smillert extern void init_termcap(int);
51c72b5b24Smillert extern void init_screen(void);
52c72b5b24Smillert extern void end_screen(void);
53c72b5b24Smillert extern void reinit_screen(void);
54c72b5b24Smillert extern void get_screensize(void);
55c72b5b24Smillert extern void go_home(void);
56