Re: JNA stdout and the REPL

2020-02-14 Thread Jason Felice
I imagine you'll have to call the Java System.out.println from C. I forget how exactly to do this. Java streams and ANSI/POSIX C streams aren't compatible. The C ones usually rely on having an OS file descriptor, and Java allows making new kinds by implementing interfaces. There's not a general

Re: JNA stdout and the REPL

2020-02-14 Thread Sonny To
here is an example of > package foo; > >

JNA stdout and the REPL

2020-02-14 Thread Sonny To
I am using JNA to call native C code. calling native code that outputs to stdout does not show up in the Clojure REPL. stdout is redirected somewhere that is not attached to *out* How can I get stdout from native code outputting to *out* in the REPL? Without this, it makes it difficult to see w