Fixed newlines in crib game.
This commit is contained in:
@@ -523,6 +523,7 @@ char *argv[];
|
|||||||
signal(SIGINT, bye);
|
signal(SIGINT, bye);
|
||||||
crmode();
|
crmode();
|
||||||
noecho();
|
noecho();
|
||||||
|
nonl();
|
||||||
Playwin = subwin(stdscr, PLAY_Y, PLAY_X, 0, 0);
|
Playwin = subwin(stdscr, PLAY_Y, PLAY_X, 0, 0);
|
||||||
Tablewin = subwin(stdscr, TABLE_Y, TABLE_X, 0, PLAY_X);
|
Tablewin = subwin(stdscr, TABLE_Y, TABLE_X, 0, PLAY_X);
|
||||||
Compwin = subwin(stdscr, COMP_Y, COMP_X, 0, TABLE_X + PLAY_X);
|
Compwin = subwin(stdscr, COMP_Y, COMP_X, 0, TABLE_X + PLAY_X);
|
||||||
@@ -537,9 +538,11 @@ char *argv[];
|
|||||||
if (getuchar() == 'Y') {
|
if (getuchar() == 'Y') {
|
||||||
endwin();
|
endwin();
|
||||||
fflush(stdout);
|
fflush(stdout);
|
||||||
system(INSTRCMD);
|
if (system(INSTRCMD) < 0)
|
||||||
|
/*ignore*/;
|
||||||
crmode();
|
crmode();
|
||||||
noecho();
|
noecho();
|
||||||
|
nonl();
|
||||||
clear();
|
clear();
|
||||||
refresh();
|
refresh();
|
||||||
msg("For the rules of this program, do \"man cribbage\"");
|
msg("For the rules of this program, do \"man cribbage\"");
|
||||||
|
|||||||
Reference in New Issue
Block a user