SCCS-vsn: games/hangman/getguess.c 5.2
-static char sccsid[] = "@(#)getguess.c 5.1 (Berkeley) %G%";
+static char sccsid[] = "@(#)getguess.c 5.2 (Berkeley) %G%";
#endif /* not lint */
# include "hangman.h"
#endif /* not lint */
# include "hangman.h"
- else if (ch == CTRL(D))
+ else if (ch == CTRL('D'))
die();
else
mvprintw(MESGY, MESGX, "Not a valid guess: '%s'",
die();
else
mvprintw(MESGY, MESGX, "Not a valid guess: '%s'",
if (++cnt > 100)
die();
}
if (++cnt > 100)
die();
}
- else if (ch == CTRL(L)) {
+ else if (ch == CTRL('L')) {
wrefresh(curscr);
mvcur(0, 0, curscr->_cury, curscr->_curx);
}
wrefresh(curscr);
mvcur(0, 0, curscr->_cury, curscr->_curx);
}