tty_update_flag
*f = tty_update_flag(el, *f, mode, kind);
*ed = tty_update_flag(el, *tt, ED_IO, kind);
*ex = tty_update_flag(el, *tt, EX_IO, kind);