home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume4
/
nobs2
/
window.c
< prev
next >
Wrap
C/C++ Source or Header
|
1988-05-20
|
690b
|
37 lines
#include "defs.h"
#include "globs.h"
#include "window.h"
initwins()
{
initscr();
Humanhand = subwin(stdscr, 3, 29, 16, 30);
Programhand = subwin(stdscr, 3, 28, 5, 30);
Prompt = subwin(stdscr, 2, 72, 22, 5);
Select = subwin(stdscr, 1, 28, 19, 30);
Crib = subwin(stdscr, 1, 20, 12, 1);
Cut = subwin(stdscr, 1, 3, 12, 66);
Hscore = subwin(stdscr, 5, 27, 15, 0);
Pscore = subwin(stdscr, 5, 27, 2, 0);
scrollok(Hscore, TRUE);
scrollok(Pscore, TRUE);
Board = subwin(stdscr, 3, 37, 11, 28);
initboard();
}
initboard()
{
int i;
for (i=0; i<37; i++) if (1 != (i%6)) {
mvwaddch(Board, 0, i, ':');
mvwaddch(Board, 2, i, ':');
}
}
termwins()
{
clear();
refresh();
endwin();
}