* v2.0 featuring strict ANSI/POSIX conformance, November 1993.
* v2.1 with ncurses mouse support, September 1995
*
* v2.0 featuring strict ANSI/POSIX conformance, November 1993.
* v2.1 with ncurses mouse support, September 1995
*
if ((tmpname = getlogin()) != 0) {
(void) strcpy(name, tmpname);
if ((tmpname = getlogin()) != 0) {
(void) strcpy(name, tmpname);
/* get a command letter */
prompt(1, "Type one of [%s] to pick a ship.", docked + 1);
do {
/* get a command letter */
prompt(1, "Type one of [%s] to pick a ship.", docked + 1);
do {
(void) mvprintw(PROMPTLINE, 0,
"I shoot at %c%d. I %s!", y + 'A', x, hit ? "hit" :
"miss");
(void) mvprintw(PROMPTLINE, 0,
"I shoot at %c%d. I %s!", y + 'A', x, hit ? "hit" :
"miss");