}
int c = getch ();
switch (c) {
- case KEY_ESC:
-#ifndef __PDCURSES__
- if (getch () != KEY_ESC) {
- break;
- }
-#endif /* __PDCURSES__ */
- case ':':
- break;
+ case ' ':
case 'd':
if (length > 0) {
if (testlocation (boardhuman, length, x, y, orient ^ 1, " ")) {
}
}
break;
+ case KEY_ENTER:
+ case '\r':
+ case '\n':
case 'p':
if (length > 0) {
putlocation (boardhuman, length, x, y, orient, 'S');
/* computer turn */
}
break;
+ case KEY_ESC:
case 'q':
stop = 1;
break;
+ case '\t':
case 't':
mode ^= 1;
break;