tty_term_flag
int tty_term_flag(struct tty_term *, enum tty_code_code);
if (!tty_term_flag(term, TTYC_AM))
if (tty_term_flag(term, TTYC_XT) || strncmp(s, "\033[", 2) == 0) {
if ((tty_term_flag(term, TTYC_TC) || tty_term_has(term, TTYC_RGB)) &&
if (tty_term_flag(tty->term, TTYC_BCE))
if (!tty_term_flag(tty->term, TTYC_AX))