home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
games
/
volume8
/
unidraw
/
part01
/
init.c
< prev
next >
Wrap
C/C++ Source or Header
|
1989-12-19
|
936b
|
54 lines
#ifndef LINT
static char COPYRIGHT[]="\
COPYRIGHT --- COPYRIGHT --- COPYRIGHT --- COPYRIGHT \n\
This program is copyright 1989 Nils McCarthy. This \
program may be distributed if it is impossible for \
the distributor to get a more up-to-date-version of \
it. \n\
COPYRIGHT --- COPYRIGHT --- COPYRIGHT --- COPYRIGHT \n\
";
static char AUTHOR[]="Copyright 1989 Nils McCarthy";
#endif /* LINT */
void endwin();
#include "unidraw.h"
brkfunct()
{
clear();
move(0,0);
printw("goodbye. see you in unidraw again sometime...\n");
refresh();
echo();
nl();
resetty();
endwin();
exit(0);
}
init()
{
int i,j;
initscr();
savetty();
cbreak();
noecho();
signal(SIGINT,brkfunct);
nl();
keymaps();
pen=0;
pench='#';
padx=0;
pady=0;
padposx=0;
padposy=0;
for(i=0;i<PADLINES;i++)
for(j=0;j<PADCOLS;j++)
pad(i,j)=' ';
clear();
redraw();
}