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);
}

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to