fix: ncurses init in main

pull/2/head
Nicolò Balzarotti 2016-12-26 15:52:51 +01:00
parent c9bf6ab29b
commit 37c6bbea0f
1 changed files with 5 additions and 5 deletions

View File

@ -31,6 +31,11 @@ int gridset = 0;
FILE *fp;
int main () {
initscr();
noecho();
cbreak();
keypad(stdscr, true);
srand (time(NULL));
fp = fopen ("roofus.txt", "a+");
if (fp == NULL) {
@ -63,11 +68,6 @@ void restoregrid () {
void menu (){
int mode;
initscr();
noecho();
cbreak();
keypad(stdscr, true);
while (1) {
clear();
printw ("~~~ ROOFUS ~~~\n\n[1] Play\n[2] Ranking\n[3] Settings\n[4] Rules\n[q] Quit\n\n");