tp_waitup
tp_waitup(tp, 200, check_esc, 0 /* stdin */);
int tp_waitup(struct tp *, int, int (*)(void *), void *);