EDIT: I just found out this is a problem with IJulia itself, not with Sublime-IJulia.
I am not sure how to enable logging of stdout for ccall()-ed libraries. For example, lets make `test.c be
#include <stdio.h>
void test()
{ int i=0;
for (i=0; i < 10; i++)
{
printf("hehe\r\n");
fflush(stdout);
system("sleep 0.5");
}
}
compite with gcc -shared test.c -o test.so -fPIC, and then call it with juia, from sublime-IJulia:
ccall( (:test, "./test.so"), None, () )
Instead of seeing a series of 'hehe', separated by a 500ms pause, I see nothing while the ccall is active, and then the whole bunch of stdout appearing instantly once the ccall returns. Is there any way to deal with this issue in a clean way?
Thanks.
EDIT: I just found out this is a problem with IJulia itself, not with Sublime-IJulia.
I am not sure how to enable logging of stdout for ccall()-ed libraries. For example, lets make
`test.c
becompite with
gcc -shared test.c -o test.so -fPIC
, and then call it with juia, from sublime-IJulia:Instead of seeing a series of 'hehe', separated by a 500ms pause, I see nothing while the ccall is active, and then the whole bunch of stdout appearing instantly once the ccall returns. Is there any way to deal with this issue in a clean way? Thanks.