On 29-08-17 10:50, Velitar wrote:
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
isextern (C) void ud(void* userData)
andv
ispublic 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.
Where you are passing &v to spawnSync expects a void to some data it <br>will pass along to the childSetup function, if you want to pass the <br>delegate as the data you might be able to cast it to void.