/****************************************************************************
- * Copyright (c) 2007,2008 Free Software Foundation, Inc. *
+ * Copyright (c) 2007-2008,2010 Free Software Foundation, Inc. *
* *
* Permission is hereby granted, free of charge, to any person obtaining a *
* copy of this software and associated documentation files (the *
* authorization. *
****************************************************************************/
/*
- * $Id: demo_panels.c,v 1.33 2008/08/04 13:33:48 tom Exp $
+ * $Id: demo_panels.c,v 1.37 2010/05/01 22:19:02 tom Exp $
*
* Demonstrate a variety of functions from the panel library.
*/
int result = 0;
int x1, y1;
char cmd;
- WINDOW *win;
getyx(stdscr, y1, x1);
- win = statusline();
+ (void) statusline();
show_position(text, also, which, y1, x1);
PANEL *pan;
int j;
+ memset(table, 0, sizeof(table));
for (j = 1; j <= MAX_PANELS; ++j) {
table[j].valid = (px[j] != 0);
if (table[j].valid) {
keypad(win, TRUE);
if ((pan = new_panel(win)) != 0) {
werase(win);
- mvwprintw(win, 0, 0, "Panels:\n");
+ MvWPrintw(win, 0, 0, "Panels:\n");
for (j = 1; j <= MAX_PANELS; ++j) {
if (table[j].valid) {
wprintw(win, " %d:", j);