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