/*ARGSUSED*/ pl_main() { if (!SCREENTEST()) { printf("Can't sail on this terminal.\n"); exit(1); } initialize(); Signal("Aye aye, Sir", (struct ship *)0); play(); return 0; /* for lint, play() never returns */ }
void initscreen() { if (!SCREENTEST()) errx(1, "can't sail on this terminal."); /* initscr() already done in SCREENTEST() */ view_w = newwin(VIEW_Y, VIEW_X, VIEW_T, VIEW_L); slot_w = newwin(SLOT_Y, SLOT_X, SLOT_T, SLOT_L); scroll_w = newwin(SCROLL_Y, SCROLL_X, SCROLL_T, SCROLL_L); stat_w = newwin(STAT_Y, STAT_X, STAT_T, STAT_L); turn_w = newwin(TURN_Y, TURN_X, TURN_T, TURN_L); done_curses++; (void) leaveok(view_w, 1); (void) leaveok(slot_w, 1); (void) leaveok(stat_w, 1); (void) leaveok(turn_w, 1); noecho(); cbreak(); }