ansi_modes(termw, func) XtermWidget	termw; void (*func) PROTO((unsigned *p, unsigned mask));
ansi_modes( XtermWidget	termw, void (*func) (unsigned *p, unsigned mask))
ansi_modes(termw, func)    XtermWidget	termw;    void (*func) PROTO((unsigned *p, unsigned mask));{	register int	i;	for (i=0; i<nparam; ++i) {		switch (param[i]) {		case 2:			/* KAM (if set, keyboard locked	*/			(*func)(&termw->keyboard.flags, MODE_KAM);			break;		case 4:			/* IRM				*/			(*func)(&termw->flags, INSERT);			break;		case 12:		/* SRM (if set, local echo	*/			(*func)(&termw->keyboard.flags, MODE_SRM);			break;		case 20:		/* LNM				*/			(*func)(&termw->flags, LINEFEED);			update_autolinefeed();			break;		}	}}