/* * ep - extended pipelining * * m_proctable.c - ncurses process table menu item * ____________________________________________________________ * * Developed by Ondrej Jombik * and Lubomir Host * Copyright (c) 2000-2003 Platon SDG, http://platon.sk/ * All rights reserved. * * See README file for more information about this software. * See COPYING file for license information. * * Download the latest version from * http://platon.sk/projects/ep/ */ /* $Platon: ep/src/m_proctable.c,v 1.12 2003/05/03 09:58:19 nepto Exp $ */ #ifdef HAVE_CONFIG_H # include "config.h" #endif #include #ifdef HAVE_MALLOC_H # include #endif #ifdef STDC_HEADERS # include #endif #if HAVE_MENU # include #include #include "proctable.h" int menu_proctable_info(p_ptbl, y, x) PROCTABLE *p_ptbl; int y; int x; { int c, j, k; struct mallinfo i; chtype hbox = '-', vbox = '|'; int xsize = 32; int ysize = 12; char *str= (char *)malloc(1000*sizeof(char)); // WINDOW *win = newwin(ysize, xsize, (LINES-ysize)/2, (COLS-xsize)/2); WINDOW *win = newwin(ysize, xsize, y, x); wstandout(win); wrefresh(win); i=mallinfo(); sprintf(str, "proctable goes here"); mvwaddstr(win, 1, 0, str); for (k=0; k<3; k++) for (j=0; j