Hello,
how can I run command or bash inside Vte Terminal?
I tried this:

term.spawnSync(PtyFlags.DEFAULT, "/home/user", ["/bin/bash"], new string[0],
                SpawnFlags.DO_NOT_REAP_CHILD, &ud, &v, null, null);

whrere ud is extern (C) void ud(void* userData)
and v is public void v(void* userData) inside a class, but I got this error:

function 
    spawnSync (..., extern (C) void function(void* userData),
      void*, out int, Cancellable)
is not callable using argument types
   (..., extern (C) void function(void* userData) pure nothrow @nogc @safe, void delegate(void* userData), typeof(null), typeof(null))

Thanks for your help.