tem_terminal_emulate
static void tem_terminal_emulate(struct tem_vt_state *, uint8_t *, int);
tem_terminal_emulate(tem, buf, len);