term->seen_disp_event = 1;
seen_disp_event(term);
void term_seen_key_event(Terminal *term){    /*     * On any keypress, clear the bell overload mechanism     * completely, on the grounds that large numbers of     * beeps coming from deliberate key action are likely     * to be intended (e.g. beeps from filename completion     * blocking repeatedly).     */    term->beep_overloaded = FALSE;    while (term->beephead) {	struct beeptime *tmp = term->beephead;	term->beephead = tmp->next;	sfree(tmp);    }    term->beeptail = NULL;    term->nbeeps = 0;    /*     * Reset the scrollback on keypress, if we're doing that.     */    if (term->cfg.scroll_on_key) {	term->disptop = 0;	       /* return to main screen */	term->seen_disp_event = 1;    }}