void HandleStringEvent(w, event, params, nparams) Widget w GCC_UNUSED; XEvent *event GCC_UNUSED; String *params; Cardinal *nparams;
void HandleStringEvent( Widget w GCC_UNUSED, XEvent *event GCC_UNUSED, String *params, Cardinal *nparams)
void HandleStringEvent(w, event, params, nparams)    Widget w GCC_UNUSED;    XEvent *event GCC_UNUSED;    String *params;    Cardinal *nparams;{    register TScreen *screen = &term->screen;#ifdef ACTIVEWINDOWINPUTONLY    if (w != CURRENT_EMU(screen))    	return;#endif    if (*nparams != 1) return;    if ((*params)[0] == '0' && (*params)[1] == 'x' && (*params)[2] != '\0') {	char c, *p, hexval[2];	hexval[0] = hexval[1] = 0;	for (p = *params+2; (c = *p); p++) {	    hexval[0] *= 16;	    if (isupper(c)) c = tolower(c);	    if (c >= '0' && c <= '9')		hexval[0] += c - '0';	    else if (c >= 'a' && c <= 'f')		hexval[0] += c - 'a' + 10;	    else break;	}	if (c == '\0')	    StringInput (screen, hexval, 1);    }    else {	StringInput (screen, *params, strlen(*params));    }}