Main Page | Report this Page
Computers Forum Index  »  Computer - Editors  »  xcmdsrv_client.c in gvim7.2/tools...
Page 1 of 1    

xcmdsrv_client.c in gvim7.2/tools...

Author Message
digit...
Posted: Tue Oct 13, 2009 12:23 pm
Guest
Dear all:
I have problem about tools/xcmdsrv_client.c. How I can issue
tow command through this channel by the code? I modify as the below:
main(int argc, char **argv)
{
char *res;
int code;
int t; // *
Display *dpy; // *
dpy = XOpenDisplay(NULL); // *

if (argc == 4)
{
for (t=0;t<2;t++)
{
if ((res = sendToVim(dpy, argv[2], argv[3],
argv[1][0] != 'e', &code)) != NULL)
{
if (code)
printf("Error code returned: %d\n", code);
puts(res);
}
}
exit(0);
}
else
fprintf(stderr, "Usage: %s {k|e} <server> <command>", argv[0]);

exit(1);
}
 
 
Page 1 of 1    
All times are GMT
The time now is Fri Nov 27, 2009 5:23 pm