ribosome icon indicating copy to clipboard operation
ribosome copied to clipboard

ribosome (.js?) buffers all of stdout

Open norswap opened this issue 7 years ago • 1 comments

ribosome.js uses exec to run the rna file, and patches stdout and stderr in the callback, hence preventing "live" update of stdout and stderr.

The fix is to use spawn instead of exec: https://stackoverflow.com/questions/10232192/exec-display-stdout-live

A simple workaround is to first generate the rna file, then run that. Still, having the same semantics for both methods would be preferable.

I'll gladly provide a patch for the JS version, but I won't bother with the others (if they do suffer from the same issue, which is not sure).

norswap avatar Aug 26 '18 18:08 norswap

Sure. Do send a JS patch. Thanks!

sustrik avatar Aug 27 '18 10:08 sustrik