}
if (curses) {
- waddch('\n');
+ waddch(stdscr, '\n');
waddstr(stdscr, prompt);
wgetnstr(stdscr, buf, sizeof(buf));
wclear(stdscr);
}
}
-void getline(char *line, int max)
-{
+void getline(char *line, int max) {
if (curses) {
wgetnstr(stdscr, line, max);
wrefresh(stdscr);
line[strlen(line)-1] = '\0';
}
}
+
+void commandhook(char *cmd, int before) {
+}
}\r
else prout("UNRECOGNIZED COMMAND.");\r
}\r
+ commandhook(commands[i], TRUE);\r
switch (i) { /* command switch */\r
case 0: // srscan\r
srscan(1);\r
helpme(); // get help\r
break;\r
}\r
+ commandhook(commands[i], FALSE);\r
for (;;) {\r
if (alldone) break; // Game has ended\r
#ifdef DEBUG\r
void iostart(int);\r
void ioend(void);\r
void getline(char *, int);\r
+void commandhook(char *, int);\r