xref: /openbsd-src/usr.bin/top/layout.h (revision 334e837ed29905346e0a94723269e221813a5447)
1*334e837eSotto /*	$OpenBSD: layout.h,v 1.5 2007/03/30 19:21:19 otto 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 Berkeley Unix
337cb5cbe1Sdownsj  *
34*334e837eSotto  *  This file defines the locations on the screen for various parts of the
357cb5cbe1Sdownsj  *  display.  These definitions are used by the routines in "display.c" for
367cb5cbe1Sdownsj  *  cursor addressing.
377cb5cbe1Sdownsj  */
387cb5cbe1Sdownsj 
397cb5cbe1Sdownsj #define  x_lastpid	10
407cb5cbe1Sdownsj #define  y_lastpid	0
417cb5cbe1Sdownsj #define  x_loadave	33
427cb5cbe1Sdownsj #define  x_loadave_nompid	15
437cb5cbe1Sdownsj #define  y_loadave	0
447cb5cbe1Sdownsj #define  x_procstate	0
457cb5cbe1Sdownsj #define  y_procstate	1
467cb5cbe1Sdownsj #define  x_brkdn	15
477cb5cbe1Sdownsj #define  y_brkdn	1
487cb5cbe1Sdownsj #define  x_mem		8
491643a62dSmillert extern int y_mem;
501643a62dSmillert extern int y_message;
511643a62dSmillert extern int y_header;
527cb5cbe1Sdownsj #define  x_idlecursor	0
531643a62dSmillert extern int y_idlecursor;
541643a62dSmillert extern int y_procs;
557cb5cbe1Sdownsj 
567cb5cbe1Sdownsj #define  y_cpustates	2
57