1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
This is the file XCIN.client.doc of the xcin package ver. 2.1d-fix4
------------------------------------------------------------------
No need to initialize or establish connection to XCIN server
You should link your AP with xcin/cli_xcin.o
**************************************************************************
XNextEvent(display,&event);
switch(event.type)
{
case KeyPress:
s = lookup_key(&event,&count);
/* send key event to xcin */
k_status=send_key(display, main_win, &event, chstr);
if (!k_status) send_string(s,count); /* use program's output */
else
if (chstr[0]) { /* if chstr is non-empty C string, it is output */
send_string(chstr,strlen(chstr)); /* use xcin's output */
} /* else the input is accepted by xcin, but no ouput is given */
return;
case FocusIn:
scr_focus(1);
send_FocusIn(display, main_win);
/* send focusin to xcin, if possible */
/* If you don't, xcin will not restore this client's input status */
return;
================
End of document.
================
Author:
-------
Edward Der-Hua Liu ??
|