home *** CD-ROM | disk | FTP | other *** search
- # include <stdio.h>
- # include <bench.h>
- # include <proc.io>
- # include "iodef.h"
- # include "field.h"
- # include "sup.h"
- # include "screen.h"
-
- /*
- * Remove the menu prompts from the screen
- * by overwriting with spaces.
- */
- void draw_menu(menu, first, last, mode, choice, whdl)
- struct optab *menu;
- int first;
- int last;
- int mode;
- int *choice;
- int *whdl;
- {
- int i, j, k = 0;
-
- for (j = first; j <= last; j++)
- {
- i = 0;
- sel_w(&whdl[j]);
- dup_w();
- if (mode == TRUE)
- dsp_opt(menu, choice);
- else
- {
- while (menu[i].text != NULL)
- {
- rephoriz_w(menu[i].row, menu[i].col, NORMAL, strlen(menu[i].text), ' ');
- i++;
- }
- dsp_opt((struct optab *)0, &k);
- }
- }
- }
-
-