#include <stdlib.h>
#include <stdio.h>
#include <stdint.h>
#include <unistd.h>
#include <ncurses.h>

int main(int argc, char **argv){
	//uint32_t A[8][4];
	//uint32_t B[32];

	uint32_t num1 = 0;

WINDOW *w = initscr();
cbreak();
nodelay(w, TRUE);

printf("Press q to exit\n");
        system("stty raw");
	while(1){
sleep(1);
                if(getchar() == 'q')
                        break;
		num1++;
	}
system("stty cooked");
	printf("%u\n", num1);

	return 0;
}
