check_esc
res = tp_get(tp, &x, &y, check_esc, 0 /* stdin */);
tp_waitup(tp, 200, check_esc, 0 /* stdin */);
int check_esc(void *);