+prompt(promptno)
+int promptno;
+{
+ static char *names[] = {
+ ">>:Move:",
+ "Really?",
+ "Another hand?",
+ "Another game?",
+ "Save game?",
+ "Same file?",
+ "file:",
+ "Extension?",
+ "Overwrite file?",
+ };
+ static int last_prompt = -1;
+
+ if (promptno == last_prompt)
+ move(MOVE_Y, MOVE_X + strlen(names[promptno]) + 1);
+ else {
+ move(MOVE_Y, MOVE_X);
+ if (promptno == MOVEPROMPT)
+ standout();
+ addstr(names[promptno]);
+ if (promptno == MOVEPROMPT)
+ standend();
+ addch(' ');
+ last_prompt = promptno;
+ }
+ clrtoeol();
+}
+