/* * Instructions command for rogue clone. Alan Cox 1992 */ #ifndef CURSES #include #endif CURSES #include "rogue.h" #include #include static char *instructions="/usr/games/rogue.instr"; void Instructions() { char buffer[DROWS+1][DCOLS+1]; char buf[256]; FILE *f; short row; int i,j; f=fopen(instructions,"r"); if(f==NULL) { message("Help file not on line.",0); return; } for (row = 0; row < DROWS; row++) { for (j = 0; j < DCOLS; j++) { buffer[row][j] = mvinch(row, j); } buffer[row][j] = 0; mvaddstr(row, 0, buffer[row]); clrtoeol(); } move(0,0); for(i=0;i