diff --git a/ttyclock.c b/ttyclock.c index 0018cde..fb5ec2e 100644 --- a/ttyclock.c +++ b/ttyclock.c @@ -98,7 +98,7 @@ init(void) set_center(ttyclock->option.center); - nodelay(ttyclock->framewin, TRUE); + nodelay(stdscr, True); wrefresh(ttyclock->datewin); wrefresh(ttyclock->framewin); @@ -325,7 +325,7 @@ key_event(void) struct timespec length = { 0, UPDATETIME }; - switch(c = wgetch(ttyclock->framewin)) + switch(c = wgetch(stdscr)) { case KEY_UP: case 'k':