/uspace/trunk/tetris/input.c |
---|
108,7 → 108,7 |
s = &endtv; |
} else |
s = NULL; |
again: |
if (!lastchar) { |
if (!getchar_inprog) |
getchar_inprog = async_send_2(1,CONSOLE_GETCHAR,0,0,&charcall); |
142,7 → 142,6 |
tsleep(void) |
{ |
struct timeval tv; |
char c; |
tv.tv_sec = 0; |
tv.tv_usec = fallrate; |
/uspace/trunk/tetris/screen.c |
---|
61,15 → 61,8 |
static cell curscreen[B_SIZE]; /* 1 => standout (or otherwise marked) */ |
static int curscore; |
static int isset; /* true => terminal is in game mode */ |
static void (*tstp)(int); |
static void scr_stop(int); |
static void stopset(int); |
static char |
*CEstr; /* clear to end of line */ |
/* |
* putstr() is for unpadded strings (either as in termcap(5) or |
* simply literal strings); |
148,15 → 141,6 |
return async_req_2(con_phone, CONSOLE_GETSIZE, 0, 0, &ws->ws_row, &ws->ws_col); |
} |
static void |
scr_stop(int sig) |
{ |
scr_end(); |
scr_set(); |
scr_msg(key_msg, 1); |
} |
/* |
* Set up screen mode. |
*/ |
/uspace/trunk/tetris/tetris.c |
---|
165,10 → 165,6 |
srandom(tv.tv_sec + tv.tv_usec / 100000); |
} |
static void tetris_scores(int firstgame) |
{ |
} |
static void tetris_menu_draw(int level) |
{ |
clear_screen(); |
259,8 → 255,7 |
char *keys; |
int level = 2; |
char key_write[6][10]; |
const char *errstr; |
int ch, i, j; |
int i, j; |
keys = "jkl pq"; |
450,7 → 445,8 |
break |
*/ |
scr_end(); |
exit(0); |
return 0; |
} |
/* void */ |