tputchar
if ((flags & TOTTY) && tputchar(c, tp) < 0)
if (tputchar((uint8_t)mbp->msg_ptr[ri], tp) < 0) {
int tputchar (int c, struct tty *tp);